fix: resolve ip of udp proxy error

This commit is contained in:
Skyxim 2022-08-29 13:04:48 +08:00
parent 7f197ede51
commit d69e0bce4a

View File

@ -119,9 +119,12 @@ func resolveUDPAddrWithPrefer(network, address string, prefer C.DNSPrefer) (*net
}
}
}
if !ip.IsValid() && fallback.IsValid() {
ip = fallback
}
}
}
if err != nil {
return nil, err