mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2024-11-14 21:31:16 +08:00
fix: sub-rule condition don't work
This commit is contained in:
parent
248578086f
commit
6decaef050
@ -247,7 +247,10 @@ func matchSubRules(metadata *C.Metadata, name string, subRules map[string][]C.Ru
|
||||
func (logic *Logic) Match(metadata *C.Metadata) (bool, string) {
|
||||
switch logic.ruleType {
|
||||
case C.SubRules:
|
||||
return matchSubRules(metadata, logic.adapter, logic.subRules)
|
||||
if m, _ := logic.rules[0].Match(metadata); m {
|
||||
return matchSubRules(metadata, logic.adapter, logic.subRules)
|
||||
}
|
||||
return false, ""
|
||||
case C.NOT:
|
||||
if m, _ := logic.rules[0].Match(metadata); !m {
|
||||
return true, logic.adapter
|
||||
|
Loading…
Reference in New Issue
Block a user