mirror of
https://mirror.suhoan.cn/https://github.com/EasyTier/EasyTier.git
synced 2025-12-16 14:47:25 +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)
|
||||
|
||||
@@ -1441,7 +1441,7 @@ impl Route for PeerRoute {
|
||||
return Some(peer_id);
|
||||
}
|
||||
|
||||
tracing::info!(?ipv4_addr, "no peer id for ipv4");
|
||||
tracing::debug!(?ipv4_addr, "no peer id for ipv4");
|
||||
None
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user