mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2024-11-15 05:31:18 +08:00
fix: classical missing count
This commit is contained in:
parent
705311b70e
commit
045dd0589b
@ -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