fix data not encrypted when no tun is enabled (#1435)

This commit is contained in:
Sijie.Sun
2025-10-01 11:16:24 +08:00
committed by GitHub
parent 020bf04ec4
commit 971ef82679
6 changed files with 19 additions and 11 deletions
+2 -4
View File
@@ -305,8 +305,7 @@ impl Socks5ServerNet {
tracing::error!("send to smoltcp stack failed: {:?}", e);
}
}
tracing::error!("smoltcp stack sink exited");
panic!("smoltcp stack sink exited");
tracing::warn!("smoltcp stack sink exited");
});
forward_tasks.spawn(async move {
@@ -327,8 +326,7 @@ impl Socks5ServerNet {
tracing::error!("send to peer failed in smoltcp sender: {:?}", e);
}
}
tracing::error!("smoltcp stack stream exited");
panic!("smoltcp stack stream exited");
tracing::warn!("smoltcp stack stream exited");
});
let interface_config = smoltcp::iface::Config::new(smoltcp::wire::HardwareAddress::Ip);