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

@ -113,7 +113,6 @@ func (p *authenticator) periodReload(ctx context.Context) error {
p.options.logger.Warnf("reload: %v", err)
// return err
}
p.options.logger.Debug("auther reload done")
case <-ctx.Done():
return ctx.Err()
}
@ -181,6 +180,7 @@ func (p *authenticator) load(ctx context.Context) (m map[string]string, err erro
}
}
p.options.logger.Debugf("load items %d", len(m))
return
}