IP Blacklist

This commit is contained in:
2025-03-29 00:26:05 +08:00
parent 105ec693f8
commit f3f9ebb5af
4 changed files with 46 additions and 1 deletions

View File

@@ -50,6 +50,8 @@ func main() {
// Load settings
if err := viper.ReadInConfig(); err != nil {
log.Panic().Err(err).Msg("An error occurred when loading settings.")
} else if err := web.ParseBlockIPList(viper.GetString("ip_block_path")); err != nil {
log.Error().Err(err).Msg("An error occurred when parsing block IP list.")
}
// Connect to kv (etcd)