mirror of
https://github.com/MetaCubeX/Clash.Meta.git
synced 2025-04-05 06:03:34 +03:00
fix: classical missing count
This commit is contained in:
parent
705311b70e
commit
045dd0589b
1 changed files with 6 additions and 5 deletions
|
@ -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…
Add table
Reference in a new issue