Fix matching rule-set invert

This commit is contained in:
世界
2026-02-14 01:59:53 +08:00
parent 6fc511f56e
commit 4d7f99310c
2 changed files with 158 additions and 3 deletions

View File

@@ -107,9 +107,7 @@ func (r *abstractDefaultRule) Match(metadata *adapter.InboundContext) bool {
}
for _, item := range r.items {
if _, isRuleSet := item.(*RuleSetItem); !isRuleSet {
metadata.DidMatch = true
}
metadata.DidMatch = true
if !item.Match(metadata) {
return r.invert
}