fix: udp default resolve ip

This commit is contained in:
Skyxim 2022-08-28 15:57:10 +08:00 committed by GitHub
parent 99effb051b
commit db94dc76b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,7 +103,8 @@ func resolveUDPAddrWithPrefer(network, address string, prefer C.DNSPrefer) (*net
}
ip = fallback
}
case C.IPv4Prefer | C.DualStack:
default:
// C.IPv4Prefer, C.DualStack and other
var ips []netip.Addr
ips, err = resolver.ResolveAllIPProxyServerHost(host)
var fallback netip.Addr