mirror of
https://github.com/xiaoqidun/probe.git
synced 2026-01-29 04:58:46 +08:00
+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