From f69d619d8c47cfdc83d360b66e0204836643242e Mon Sep 17 00:00:00 2001 From: EAimTY Date: Sat, 25 Jun 2022 20:20:27 +0900 Subject: [PATCH] log warn when receiving fragged packet from socks5 --- client/src/socks5/associate.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/socks5/associate.rs b/client/src/socks5/associate.rs index a37bf5d..6ccc4b3 100644 --- a/client/src/socks5/associate.rs +++ b/client/src/socks5/associate.rs @@ -97,7 +97,7 @@ async fn socks5_to_relay( socket.connect(src_addr).await?; break; } else { - log::warn!("socks5 udp packet fragment not supported"); + log::warn!("[socks5] [{ctrl_addr}] [associate] [packet-to] socks5 UDP packet fragment is not supported"); } } @@ -118,7 +118,7 @@ async fn socks5_to_relay( let _ = pkt_send_tx.send((pkt, dst_addr)).await; } else { - log::warn!("socks5 udp packet fragment not supported"); + log::warn!("[socks5] [{ctrl_addr}] [associate] [packet-to] socks5 UDP packet fragment is not supported"); } } }