mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
increase interval for up-to-date check (to 1 minute) after error, to avoid continuous flood in log on further possible errors
This commit is contained in:
parent
9145db8de3
commit
e3ab969047
1 changed files with 1 additions and 0 deletions
|
|
@ -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 a new issue