增加全局IP白名单功能

This commit is contained in:
wsczx
2024-10-04 16:02:24 +08:00
parent 59748fe395
commit c8cb9c163a
5 changed files with 77 additions and 16 deletions

View File

@@ -85,7 +85,8 @@ type ServerConfig struct {
DisplayError bool `json:"display_error"`
ExcludeExportIp bool `json:"exclude_export_ip"`
AntiBruteForce bool `json:"anti_brute_force"`
AntiBruteForce bool `json:"anti_brute_force"`
IPWhitelist string `json:"ip_whitelist"`
MaxBanCount int `json:"max_ban_score"`
BanResetTime int `json:"ban_reset_time"`