From 761fc7fdfbe651ad096879c5c37a94e4f0f7106b Mon Sep 17 00:00:00 2001 From: xiaoqidun Date: Thu, 22 Jan 2026 21:40:52 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E4=BB=A3=E7=90=86=E5=8D=8F=E8=AE=AE):=20?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=80=9A=E8=BF=87=E4=BB=A3=E7=90=86=E6=8E=A2?= =?UTF-8?q?=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- probe_nat.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/probe_nat.go b/probe_nat.go index db29af4..3add4a1 100644 --- a/probe_nat.go +++ b/probe_nat.go @@ -104,7 +104,7 @@ func resolveAddr(conn net.PacketConn, addrStr, network string) (net.Addr, error) if err != nil { return nil, err } - if _, ok := conn.(*socks5PacketConn); ok { + if _, ok := conn.(*socks5PacketConn); ok && network == "udp" { if net.ParseIP(host) == nil && host != "localhost" && host != "127.0.0.1" { return &SocksAddr{Host: host, Port: port}, nil }