mirror of
https://github.com/bjdgyc/anylink.git
synced 2025-08-08 19:22:42 +08:00
修复未启动防爆功能导致无法验证的Bug
This commit is contained in:
@@ -54,6 +54,7 @@ func antiBruteForce(next http.Handler) http.Handler {
|
||||
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
// 如果最大验证失败次数为0,则不启用防爆破功能
|
||||
if base.Cfg.MaxBanCount == 0 {
|
||||
next.ServeHTTP(w, r)
|
||||
return
|
||||
}
|
||||
body, err := io.ReadAll(r.Body)
|
||||
|
Reference in New Issue
Block a user