mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-11-16 11:42:43 +08:00
fix: classical missing count
This commit is contained in:
parent
e56db322fd
commit
ee3ad3d898
|
@ -37,13 +37,14 @@ func (c *classicalStrategy) OnUpdate(rules []string) {
|
||||||
r, err := parseRule(ruleType, rule, "", params)
|
r, err := parseRule(ruleType, rule, "", params)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Warnln("parse rule error:[%s]", err.Error())
|
log.Warnln("parse rule error:[%s]", err.Error())
|
||||||
}
|
} else {
|
||||||
|
if !shouldResolveIP {
|
||||||
|
shouldResolveIP = shouldResolveIP || r.ShouldResolveIP()
|
||||||
|
}
|
||||||
|
|
||||||
if !shouldResolveIP {
|
classicalRules = append(classicalRules, r)
|
||||||
shouldResolveIP = shouldResolveIP || r.ShouldResolveIP()
|
c.count++
|
||||||
}
|
}
|
||||||
|
|
||||||
classicalRules = append(classicalRules, r)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
c.rules = classicalRules
|
c.rules = classicalRules
|
||||||
|
|
Loading…
Reference in New Issue
Block a user