mirror of https://github.com/fail2ban/fail2ban
increase interval for up-to-date check (to 1 minute) after error, to avoid continuous flood in log on further possible errors
parent
9145db8de3
commit
e3ab969047
|
@ -793,6 +793,7 @@ class FileIPAddrSet(IPAddrSet):
|
|||
ips = splitwords(ips, ignoreComments=True)
|
||||
self.set(ips)
|
||||
except Exception as e: # pragma: no cover
|
||||
self._nextCheck += 60; # increase interval to check (to 1 minute, to avoid log flood on errors)
|
||||
if not noError: raise e
|
||||
logSys.warning("Retrieving IPs set from %r failed: %s", self.fileName, e)
|
||||
|
||||
|
|
Loading…
Reference in New Issue