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)
|
||||
if err != nil {
|
||||
log.Warnln("parse rule error:[%s]", err.Error())
|
||||
}
|
||||
} else {
|
||||
if !shouldResolveIP {
|
||||
shouldResolveIP = shouldResolveIP || r.ShouldResolveIP()
|
||||
}
|
||||
|
||||
if !shouldResolveIP {
|
||||
shouldResolveIP = shouldResolveIP || r.ShouldResolveIP()
|
||||
classicalRules = append(classicalRules, r)
|
||||
c.count++
|
||||
}
|
||||
|
||||
classicalRules = append(classicalRules, r)
|
||||
}
|
||||
|
||||
c.rules = classicalRules
|
||||
|
|
Loading…
Reference in New Issue
Block a user