fixed dns exchange index

Signed-off-by: 气息 <qdshizh@gmail.com>
This commit is contained in:
气息 2024-03-17 23:36:02 +08:00 committed by GitHub
parent 01285258c5
commit dbe833040a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
}
}
}