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)
|
||||
print "Use %11s file : %s" % (regex, value)
|
||||
# TODO: reuse functionality in client
|
||||
regex_values = [RegexStat(m)
|
||||
for m in reader.get("Definition", regex).split('\n')]
|
||||
regex_values = [
|
||||
RegexStat(m)
|
||||
for m in reader.get("Definition", regex).split('\n')
|
||||
if m != ""]
|
||||
except NoSectionError:
|
||||
print "No [Definition] section in %s" % value
|
||||
return False
|
||||
|
|
Loading…
Reference in New Issue