From dbe833040a701150fca9c8874822ce84d97f1a41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B0=94=E6=81=AF?= Date: Sun, 17 Mar 2024 23:36:02 +0800 Subject: [PATCH] fixed dns exchange index MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 气息 --- route/router_dns.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/route/router_dns.go b/route/router_dns.go index 2ac439d7..7b570395 100644 --- a/route/router_dns.go +++ b/route/router_dns.go @@ -75,9 +75,9 @@ func (r *Router) matchDNS(ctx context.Context, allowFakeIP bool, index int) (con ctx = dns.ContextWithClientSubnet(ctx, *clientSubnet) } if domainStrategy, dsLoaded := r.transportDomainStrategy[transport]; dsLoaded { - return ctx, transport, domainStrategy, rule, ruleIndex + return ctx, transport, domainStrategy, rule, displayRuleIndex } else { - return ctx, transport, r.defaultDomainStrategy, rule, ruleIndex + return ctx, transport, r.defaultDomainStrategy, rule, displayRuleIndex } } }