mirror of https://github.com/fail2ban/fail2ban
BF: fail2ban-regex fix for maxlines init option reader
parent
7a86d30c6d
commit
c98b01bd1d
|
@ -213,7 +213,7 @@ class Fail2banRegex:
|
||||||
# Read out and set possible value of maxlines
|
# Read out and set possible value of maxlines
|
||||||
try:
|
try:
|
||||||
maxlines = reader.get("Init", "maxlines")
|
maxlines = reader.get("Init", "maxlines")
|
||||||
except NoSectionError, NoOptionError:
|
except (NoSectionError, NoOptionError):
|
||||||
# No [Init].maxlines found.
|
# No [Init].maxlines found.
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue