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

@ -215,6 +215,8 @@ func (h *hostMapper) reload(ctx context.Context) (err error) {
mapf(m[i].Hostname, m[i].IP)
}
h.options.logger.Debugf("load items %d", len(mappings))
h.mu.Lock()
defer h.mu.Unlock()
@ -271,7 +273,6 @@ func (h *hostMapper) load(ctx context.Context) (mappings []Mapping, err error) {
}
}
h.options.logger.Debugf("load items %d", len(mappings))
return
}