router: update system routes for linux

This commit is contained in:
ginuerzh
2023-11-30 19:39:37 +08:00
parent 8ef341dc88
commit b1390dda1c
8 changed files with 55 additions and 12 deletions

View File

@ -139,6 +139,8 @@ func (ing *localIngress) reload(ctx context.Context) error {
fn(rule)
}
ing.options.logger.Debugf("load items %d", len(rules))
ing.mu.Lock()
defer ing.mu.Unlock()
@ -194,7 +196,6 @@ func (ing *localIngress) load(ctx context.Context) (rules []*ingress.Rule, err e
rules = append(rules, v...)
}
ing.options.logger.Debugf("load items %d", len(rules))
return
}