improve cidr matcher

This commit is contained in:
ginuerzh
2022-08-31 10:10:14 +08:00
parent d043ad94e7
commit be7af96d40
10 changed files with 42 additions and 149 deletions

View File

@ -112,7 +112,6 @@ func (bp *bypass) periodReload(ctx context.Context) error {
bp.options.logger.Warnf("reload: %v", err)
// return err
}
bp.options.logger.Debug("bypass reload done")
case <-ctx.Done():
return ctx.Err()
}
@ -197,6 +196,7 @@ func (bp *bypass) load(ctx context.Context) (patterns []string, err error) {
}
}
bp.options.logger.Debugf("load items %d", len(patterns))
return
}