Fix DNS reverse mapping pollution and ECH public name matching

This commit is contained in:
世界
2026-11-24 22:45:19 +08:00
parent 0cdfc45e26
commit d553a29433
6 changed files with 34 additions and 15 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ func queryDNS(router adapter.DNSRouter) func(w http.ResponseWriter, r *http.Requ
msg := dns.Msg{}
msg.SetQuestion(dns.Fqdn(name), qType)
resp, err := router.Exchange(ctx, &msg, adapter.DNSQueryOptions{})
resp, err := router.Exchange(ctx, &msg, adapter.DNSQueryOptions{DisableReverseMapping: true})
if err != nil {
render.Status(r, http.StatusInternalServerError)
render.JSON(w, r, newError(err.Error()))