增加用户验证防爆功能

This commit is contained in:
wsczx
2024-09-29 20:04:20 +08:00
parent 7160c3cab7
commit c5a76ba436
6 changed files with 152 additions and 3 deletions

View File

@@ -84,6 +84,11 @@ type ServerConfig struct {
DisplayError bool `json:"display_error"`
ExcludeExportIp bool `json:"exclude_export_ip"`
MaxBanCount int `json:"max_ban_score"`
BanResetTime int `json:"ban_reset_time"`
LockTime int `json:"lock_time"`
UserStateExpiration int `json:"user_state_expiration"`
}
func initServerCfg() {