修复mac端问题

This commit is contained in:
lubeilin
2023-07-17 23:04:21 +08:00
parent 6b988e0612
commit 1a5d40ff2d
+1 -1
View File
@@ -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) => {