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
+1 -1
View File
@@ -443,7 +443,7 @@ impl UdpProxy {
hdr.set_latency_first(is_latency_first);
let to_peer_id = hdr.to_peer_id.into();
tracing::trace!(?msg, ?to_peer_id, "udp nat packet response send");
let ret = peer_manager.send_msg(msg, to_peer_id).await;
let ret = peer_manager.send_msg_for_proxy(msg, to_peer_id).await;
if ret.is_err() {
tracing::error!("send icmp packet to peer failed: {:?}", ret);
}