feat(通过代理): 优化通过代理探测
/ build (push) Successful in 5m40s

This commit is contained in:
2026-01-22 21:45:26 +08:00
parent 761fc7fdfb
commit f7e5b9e930
+1 -1
View File
@@ -105,7 +105,7 @@ func resolveAddr(conn net.PacketConn, addrStr, network string) (net.Addr, error)
return nil, err
}
if _, ok := conn.(*socks5PacketConn); ok && network == "udp" {
if net.ParseIP(host) == nil && host != "localhost" && host != "127.0.0.1" {
if net.ParseIP(host) == nil {
return &SocksAddr{Host: host, Port: port}, nil
}
}