optimize blacklist

This commit is contained in:
WJQSERVER 2025-02-14 07:19:17 +08:00
parent 97ae0044e7
commit 40c9ca5f38
5 changed files with 71 additions and 40 deletions

View file

@ -18,7 +18,7 @@ var (
func Init(cfg *config.Config) {
if cfg.Blacklist.Enabled {
LoadBlacklist(cfg)
InitBlacklist(cfg)
}
if cfg.Whitelist.Enabled {
LoadWhitelist(cfg)