fix unmarshal panic

This commit is contained in:
2023-07-07 23:36:05 +02:00
parent dff505037f
commit 0d4f34f6d5
3 changed files with 6 additions and 6 deletions

View File

@@ -33,7 +33,7 @@ func (f *Fail2Ban) FailedAttempt(ip string) {
}
client.FailedAttempts++
if client.FailedAttempts >= 3 {
if client.FailedAttempts >= 2 {
client.BlockedUntil = time.Now().Add(10 * time.Minute)
client.FailedAttempts = 0