mirror of
https://mirror.suhoan.cn/https://github.com/EasyTier/EasyTier.git
synced 2025-12-15 22:27:26 +08:00
support no tun mode (#141)
This commit is contained in:
@@ -417,7 +417,7 @@ impl PeerManager {
|
||||
if hdr.packet_type == PacketType::Data as u8 {
|
||||
tracing::trace!(?packet, "send packet to nic channel");
|
||||
// TODO: use a function to get the body ref directly for zero copy
|
||||
self.nic_channel.send(packet).await.unwrap();
|
||||
let _ = self.nic_channel.send(packet).await;
|
||||
None
|
||||
} else {
|
||||
Some(packet)
|
||||
|
||||
Reference in New Issue
Block a user