From db94dc76b48ccf90ec5d58480d7914f7639d6afd Mon Sep 17 00:00:00 2001 From: Skyxim 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