TEMPORARILY allow DNS-origin Freedom connections to resolve while logging recursion risk

This commit is contained in:
Meo597
2026-11-17 23:48:10 +08:00
parent 6529210568
commit 6c1378705e
2 changed files with 2 additions and 5 deletions
+1 -4
View File
@@ -313,10 +313,7 @@ func (h *Handler) Process(ctx context.Context, link *transport.Link, dialer inte
}
if h.resolveStrategy.HasStrategy() && session.SkipDNSResolveFromContext(ctx) {
errors.LogInfo(ctx, "using AsIs instead of sockopt.domainStrategy ", h.resolveStrategy, " for connection to ", destination, " (including UDP packet targets)")
handler := *h
handler.resolveStrategy = internet.DomainStrategy_AS_IS
h = &handler
errors.LogInfo(ctx, "DNS-origin connection to ", destination, " may recursively resolve with sockopt.domainStrategy ", h.resolveStrategy)
}
input := link.Reader