From 1a5d40ff2dc53739e0e26b3734df021c0c50339c Mon Sep 17 00:00:00 2001 From: lubeilin <1791778603@qq.com> Date: Mon, 17 Jul 2023 23:04:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dmac=E7=AB=AF=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- switch/src/handle/tun_tap/tun_handler.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/switch/src/handle/tun_tap/tun_handler.rs b/switch/src/handle/tun_tap/tun_handler.rs index 7b5abcf..fa50c4f 100644 --- a/switch/src/handle/tun_tap/tun_handler.rs +++ b/switch/src/handle/tun_tap/tun_handler.rs @@ -90,7 +90,7 @@ async fn start_(sender: ChannelSender, } let len = device_reader.read(&mut buf[12..])? + 12; #[cfg(any(target_os = "macos"))] - let mut buf = &mut buf; + let mut buf = &mut buf[4..]; match handle(&sender, &mut buf, len, device_writer, &igmp_server, current_device.load(), &ip_route, &ip_proxy_map, &cipher).await { Ok(_) => {} Err(e) => {