From 1c4a01ee90564c3559988d75402474817cb4d14a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Sun, 15 Feb 2026 19:19:47 +0800 Subject: [PATCH] Fix matching multi predefined --- dns/router.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dns/router.go b/dns/router.go index 8de1f6a93..5d028059a 100644 --- a/dns/router.go +++ b/dns/router.go @@ -378,9 +378,11 @@ func (r *Router) Lookup(ctx context.Context, domain string, options adapter.DNSQ case *R.RuleActionReject: return nil, &R.RejectedError{Cause: action.Error(ctx)} case *R.RuleActionPredefined: + responseAddrs = nil if action.Rcode != mDNS.RcodeSuccess { err = RcodeError(action.Rcode) } else { + err = nil for _, answer := range action.Answer { switch record := answer.(type) { case *mDNS.A: