mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
closes gh-2506: don't increase attempt count if bantime.increment is not enabled for the jail
This commit is contained in:
parent
15734a923b
commit
6b7825b8c8
1 changed files with 1 additions and 1 deletions
|
|
@ -363,7 +363,7 @@ class ObserverThread(JailThread):
|
|||
Observer will check ip was known (bad) and possibly increase an retry count
|
||||
"""
|
||||
# check jail active :
|
||||
if not jail.isAlive():
|
||||
if not jail.isAlive() or not jail.getBanTimeExtra("increment"):
|
||||
return
|
||||
ip = ticket.getIP()
|
||||
unixTime = ticket.getTime()
|
||||
|
|
|
|||
Loading…
Reference in a new issue