Fix WithAddressLimit condition

This commit is contained in:
dyhkwong 2024-03-19 12:22:49 +08:00 committed by GitHub
parent 7db766c3fd
commit 2adb2eb35a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -247,7 +247,7 @@ func (r *DefaultDNSRule) WithAddressLimit() bool {
if !isRuleSet {
continue
}
if ruleSet.ContainsIPCIDRRule() {
if ruleSet.ContainsIPCIDRRule() && !ruleSet.ipcidrMatchSource {
return true
}
}