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

@ -252,6 +252,8 @@ func (p *chainHop) reload(ctx context.Context) (err error) {
nodes = append(nodes, nl...)
p.options.logger.Debugf("load items %d", len(nodes))
p.mu.Lock()
defer p.mu.Unlock()
@ -291,7 +293,6 @@ func (p *chainHop) load(ctx context.Context) (nodes []*chain.Node, err error) {
}
}
p.options.logger.Debugf("load items %d", len(nodes))
return
}