mirror of
https://github.com/xiaoqidun/probe.git
synced 2026-09-12 06:10:02 +08:00
1 parent
761fc7fdfb
commit
f7e5b9e930
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user