fix unmarshal panic
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user