mirror of https://github.com/fail2ban/fail2ban
BF: fail2ban-regex when using ignoreregex file with empty regex
parent
0fe93cf992
commit
ec0680d73a
|
@ -183,8 +183,10 @@ class Fail2banRegex(object):
|
||||||
reader.read(value)
|
reader.read(value)
|
||||||
print "Use %11s file : %s" % (regex, value)
|
print "Use %11s file : %s" % (regex, value)
|
||||||
# TODO: reuse functionality in client
|
# TODO: reuse functionality in client
|
||||||
regex_values = [RegexStat(m)
|
regex_values = [
|
||||||
for m in reader.get("Definition", regex).split('\n')]
|
RegexStat(m)
|
||||||
|
for m in reader.get("Definition", regex).split('\n')
|
||||||
|
if m != ""]
|
||||||
except NoSectionError:
|
except NoSectionError:
|
||||||
print "No [Definition] section in %s" % value
|
print "No [Definition] section in %s" % value
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in New Issue