From a35e586ac06702631debb3141494ad62bc736336 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Fri, 29 Jul 2011 02:08:31 +0000 Subject: [PATCH] BF: use addfailregex instead of failregex while processing per-jail "failregex" parameter (Closes: #635830) (LP: #635036) patch from Marat Khayrullin received in Ubuntu BTS. Otherwise custom per-jail failregex forbidded fail2ban from starting git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@780 a942ae1a-1317-0410-a47c-b1dcaea8d605 --- client/jailreader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/jailreader.py b/client/jailreader.py index 63177f30..a65f5eae 100644 --- a/client/jailreader.py +++ b/client/jailreader.py @@ -120,7 +120,7 @@ class JailReader(ConfigReader): elif opt == "bantime": stream.append(["set", self.__name, "bantime", self.__opts[opt]]) elif opt == "failregex": - stream.append(["set", self.__name, "failregex", self.__opts[opt]]) + stream.append(["set", self.__name, "addfailregex", self.__opts[opt]]) elif opt == "ignoreregex": for regex in self.__opts[opt].split('\n'): # Do not send a command if the rule is empty.