- Fixed ignoreregex processing in fail2ban-client. Thanks to René Berber.

git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@691 a942ae1a-1317-0410-a47c-b1dcaea8d605
0.x
Cyril Jaquier 2008-05-12 09:03:04 +00:00
parent 1b3828421e
commit 419005fd1f
1 changed files with 4 additions and 1 deletions

View File

@ -122,7 +122,10 @@ class JailReader(ConfigReader):
elif opt == "failregex":
stream.append(["set", self.__name, "failregex", self.__opts[opt]])
elif opt == "ignoreregex":
stream.append(["set", self.__name, "ignoreregex", self.__opts[opt]])
for regex in self.__opts[opt].split('\n'):
# Do not send a command if the rule is empty.
if regex != '':
stream.append(["set", self.__name, "addignoreregex", regex])
stream.extend(self.__filter.convert())
for action in self.__actions:
stream.extend(action.convert())