From c64f50fdcbe401162d070e38172f22f0fe4499bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Tue, 31 Mar 2026 17:31:09 +0800 Subject: [PATCH] dns: remove redundant queryOptions variable --- dns/router.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dns/router.go b/dns/router.go index 583374766..407f14f9c 100644 --- a/dns/router.go +++ b/dns/router.go @@ -556,9 +556,8 @@ func (r *Router) exchangeWithRules(ctx context.Context, rules []adapter.DNSRule, } } } - queryOptions := effectiveOptions transport := r.transport.Default() - exchangeOptions := queryOptions + exchangeOptions := effectiveOptions if exchangeOptions.Strategy == C.DomainStrategyAsIS { exchangeOptions.Strategy = r.defaultDomainStrategy }