From 728598ba8e0836a0f4bba465e78c49196005b712 Mon Sep 17 00:00:00 2001 From: lbl8603 <49143209+lbl8603@users.noreply.github.com> Date: Sat, 29 Jun 2024 18:44:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E9=81=97=E7=95=99=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vnt/src/protocol/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vnt/src/protocol/mod.rs b/vnt/src/protocol/mod.rs index 6694771..e718646 100644 --- a/vnt/src/protocol/mod.rs +++ b/vnt/src/protocol/mod.rs @@ -214,8 +214,7 @@ impl + AsMut<[u8]>> NetPacket { } pub fn set_gateway_flag(&mut self, is_gateway: bool) { if is_gateway { - // 后面的版本再改为0x40,改了之后不兼容1.2.5之前的版本 - self.buffer.as_mut()[0] = self.buffer.as_ref()[0] | 0x50 + self.buffer.as_mut()[0] = self.buffer.as_ref()[0] | 0x40 } else { self.buffer.as_mut()[0] = self.buffer.as_ref()[0] & 0xBF };