mirror of https://github.com/fail2ban/fail2ban
closes gh-2506: don't increase attempt count if `bantime.increment` is not enabled for the jail
parent
15734a923b
commit
6b7825b8c8
|
@ -363,7 +363,7 @@ class ObserverThread(JailThread):
|
||||||
Observer will check ip was known (bad) and possibly increase an retry count
|
Observer will check ip was known (bad) and possibly increase an retry count
|
||||||
"""
|
"""
|
||||||
# check jail active :
|
# check jail active :
|
||||||
if not jail.isAlive():
|
if not jail.isAlive() or not jail.getBanTimeExtra("increment"):
|
||||||
return
|
return
|
||||||
ip = ticket.getIP()
|
ip = ticket.getIP()
|
||||||
unixTime = ticket.getTime()
|
unixTime = ticket.getTime()
|
||||||
|
|
Loading…
Reference in New Issue