mirror of https://github.com/fail2ban/fail2ban
BF: Fix fail2ban-regex not parsing journalmatch correctly
parent
ab74a35b8a
commit
0c869910ea
|
@ -10,6 +10,7 @@ ver. 0.9.3 (2015/XX/XXX) - wanna-be-released
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
- Fixes:
|
- Fixes:
|
||||||
|
* Fix fail2ban-regex not parsing journalmatch correctly from filter config
|
||||||
|
|
||||||
- New Features:
|
- New Features:
|
||||||
|
|
||||||
|
|
|
@ -297,8 +297,8 @@ class Fail2banRegex(object):
|
||||||
"read from %(value)s" % locals()
|
"read from %(value)s" % locals()
|
||||||
return False
|
return False
|
||||||
elif command[2] == 'addjournalmatch':
|
elif command[2] == 'addjournalmatch':
|
||||||
journalmatch = command[3]
|
journalmatch = command[3:]
|
||||||
self.setJournalMatch(shlex.split(journalmatch))
|
self.setJournalMatch(journalmatch)
|
||||||
elif command[2] == 'datepattern':
|
elif command[2] == 'datepattern':
|
||||||
datepattern = command[3]
|
datepattern = command[3]
|
||||||
self.setDatePattern(datepattern)
|
self.setDatePattern(datepattern)
|
||||||
|
|
Loading…
Reference in New Issue