From 2adb2eb35aae13cdc42a1b95540d1cc51ea898af Mon Sep 17 00:00:00 2001 From: dyhkwong <50692134+dyhkwong@users.noreply.github.com> Date: Tue, 19 Mar 2024 12:22:49 +0800 Subject: [PATCH] Fix WithAddressLimit condition --- route/rule_dns.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/route/rule_dns.go b/route/rule_dns.go index b9759983..5ca93791 100644 --- a/route/rule_dns.go +++ b/route/rule_dns.go @@ -247,7 +247,7 @@ func (r *DefaultDNSRule) WithAddressLimit() bool { if !isRuleSet { continue } - if ruleSet.ContainsIPCIDRRule() { + if ruleSet.ContainsIPCIDRRule() && !ruleSet.ipcidrMatchSource { return true } }