fix: classical missing count
This commit is contained in:
parent
e56db322fd
commit
ee3ad3d898
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()
|
||||
}
|
||||
|
||||
classicalRules = append(classicalRules, r)
|
||||
c.count++
|
||||
}
|
||||
}
|
||||
|
||||
c.rules = classicalRules
|
||||
|
|
Loading…
Reference in a new issue