diff --git a/listener/tun/ipstack/gvisor/handler.go b/listener/tun/ipstack/gvisor/handler.go index 8d93ce3a..2e4ac9ff 100644 --- a/listener/tun/ipstack/gvisor/handler.go +++ b/listener/tun/ipstack/gvisor/handler.go @@ -12,7 +12,6 @@ import ( C "github.com/Dreamacro/clash/constant" D "github.com/Dreamacro/clash/listener/tun/ipstack/commons" "github.com/Dreamacro/clash/listener/tun/ipstack/gvisor/adapter" - "github.com/Dreamacro/clash/log" "github.com/Dreamacro/clash/transport/socks5" ) @@ -39,8 +38,6 @@ func (gh *gvHandler) HandleTCP(tunConn adapter.TCPConn) { if D.ShouldHijackDns(gh.dnsHijack, rAddrPort) { go func() { - log.Debugln("[TUN] hijack dns tcp: %s", rAddrPort.String()) - buf := pool.Get(pool.UDPBufferSize) defer func() { _ = pool.Put(buf) @@ -123,8 +120,6 @@ func (gh *gvHandler) HandleUDP(tunConn adapter.UDPConn) { } _, _ = tunConn.WriteTo(msg, addr) - - log.Debugln("[TUN] hijack dns udp: %s", rAddr.String()) }() continue diff --git a/listener/tun/ipstack/system/stack.go b/listener/tun/ipstack/system/stack.go index 803e5db0..b4668293 100644 --- a/listener/tun/ipstack/system/stack.go +++ b/listener/tun/ipstack/system/stack.go @@ -93,8 +93,6 @@ func New(device device.Device, dnsHijack []netip.AddrPort, tunAddress netip.Pref if D.ShouldHijackDns(dnsAddr, rAddrPort) { go func() { - log.Debugln("[TUN] hijack dns tcp: %s", rAddrPort.String()) - buf := pool.Get(pool.UDPBufferSize) defer func() { _ = pool.Put(buf) @@ -186,8 +184,6 @@ func New(device device.Device, dnsHijack []netip.AddrPort, tunAddress netip.Pref _, _ = stack.UDP().WriteTo(msg, rAddr, lAddr) _ = pool.Put(buf) - - log.Debugln("[TUN] hijack dns udp: %s", rAddrPort.String()) }() continue