closes gh-2506: don't increase attempt count if `bantime.increment` is not enabled for the jail

pull/2517/head
sebres 2019-08-22 14:11:08 +02:00
parent 15734a923b
commit 6b7825b8c8
1 changed files with 1 additions and 1 deletions

View File

@ -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()