mirror of
https://github.com/xiaoqidun/probe.git
synced 2026-01-29 04:58:46 +08:00
feat(代理协议): 优化通过代理探测
This commit is contained in:
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user