diff --git a/proxy/socks5/socks5.go b/proxy/socks5/socks5.go index 3d0cf51..f34a8e4 100644 --- a/proxy/socks5/socks5.go +++ b/proxy/socks5/socks5.go @@ -194,6 +194,8 @@ func (s *SOCKS5) ListenAndServeUDP() { nm.Delete(raddr.String()) }() + log.F("[socks5-udp] %s <-> %s", raddr, c.tgtAddr) + } else { pc = v.(*PktConn) } @@ -204,7 +206,7 @@ func (s *SOCKS5) ListenAndServeUDP() { continue } - log.F("[socks5-udp] %s <-> %s", raddr, c.tgtAddr) + // log.F("[socks5-udp] %s <-> %s", raddr, c.tgtAddr) } } diff --git a/proxy/ss/ss.go b/proxy/ss/ss.go index 7273e9d..fc54b0f 100644 --- a/proxy/ss/ss.go +++ b/proxy/ss/ss.go @@ -208,6 +208,8 @@ func (s *SS) ListenAndServeUDP() { nm.Delete(raddr.String()) }() + log.F("[ss-udp] %s <-> %s", raddr, c.tgtAddr) + } else { pc = v.(*PktConn) } @@ -218,7 +220,7 @@ func (s *SS) ListenAndServeUDP() { continue } - log.F("[ss-udp] %s <-> %s", raddr, c.tgtAddr) + // log.F("[ss-udp] %s <-> %s", raddr, c.tgtAddr) } }