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

@ -130,6 +130,7 @@ func (bp *localBypass) reload(ctx context.Context) error {
return err
}
patterns := append(bp.options.matchers, v...)
bp.options.logger.Debugf("load items %d", len(patterns))
var addrs []string
var inets []*net.IPNet
@ -205,7 +206,6 @@ func (bp *localBypass) load(ctx context.Context) (patterns []string, err error)
}
}
bp.options.logger.Debugf("load items %d", len(patterns))
return
}