From eeac5354a1966ddfb1deedb9a42ff61a2e77d2ab Mon Sep 17 00:00:00 2001 From: gVisor bot Date: Sun, 28 Aug 2022 15:57:10 +0800 Subject: [PATCH] fix: udp default resolve ip --- adapter/outbound/util.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/adapter/outbound/util.go b/adapter/outbound/util.go index de9287bd..0b859630 100644 --- a/adapter/outbound/util.go +++ b/adapter/outbound/util.go @@ -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