From 4b148861552e897209de31b647b90ea2502916fb Mon Sep 17 00:00:00 2001 From: hiddify-com <114227601+hiddify-com@users.noreply.github.com> Date: Fri, 31 May 2024 10:05:47 +0200 Subject: [PATCH] fix dns --- route/router_dns.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/route/router_dns.go b/route/router_dns.go index a1d056a4d0..8e6ef0e6f5 100644 --- a/route/router_dns.go +++ b/route/router_dns.go @@ -212,7 +212,7 @@ func (r *Router) Lookup(ctx context.Context, domain string, strategy dns.DomainS strategy = transportStrategy } dnsCtx, cancel = context.WithTimeout(dnsCtx, C.DNSTimeout) - responseAddrs, err := r.lookupStaticIP(domain, strategy) + responseAddrs, err = r.lookupStaticIP(domain, strategy) if err == nil && responseAddrs != nil { r.dnsLogger.DebugContext(ctx, "Static IP responsefor ", domain, " ", responseAddrs)