mirror of https://github.com/fail2ban/fail2ban
ENH: banning an IP in the ignoreIPList now issues warning to log, but still continues
parent
3a5983ab0b
commit
e108de3f6d
|
@ -219,6 +219,9 @@ class Filter(JailThread):
|
|||
# to enable banip fail2ban-client BAN command
|
||||
|
||||
def addBannedIP(self, ip):
|
||||
if self.inIgnoreIPList(ip):
|
||||
logSys.warning('Requested to manually ban an ignored IP ' + ip + '. User knows best. Proceeding to ban it.')
|
||||
|
||||
unixTime = MyTime.time()
|
||||
for i in xrange(self.failManager.getMaxRetry()):
|
||||
self.failManager.addFailure(FailTicket(ip, unixTime))
|
||||
|
|
Loading…
Reference in New Issue