From 9224d96521168eb61bc800466e7821d41aa9807c Mon Sep 17 00:00:00 2001 From: mzz2017 <2017@duck.com> Date: Mon, 13 Mar 2023 15:55:12 +0800 Subject: [PATCH] fix: init dns upstream error --- common/netutils/dns.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/netutils/dns.go b/common/netutils/dns.go index e8042e2..214e7d1 100644 --- a/common/netutils/dns.go +++ b/common/netutils/dns.go @@ -143,7 +143,8 @@ func resolve(ctx context.Context, d netproxy.Dialer, dns netip.AddrPort, host st }, }, nil } - return nil, fmt.Errorf("unknown type error") + // MUST No record. + return nil, nil } default: return nil, fmt.Errorf("only support to lookup A/AAAA record")