mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-05-13 14:36:43 +00:00
BF: Fix fail2ban-regex not parsing journalmatch correctly
This commit is contained in:
parent
ab74a35b8a
commit
0c869910ea
2 changed files with 3 additions and 2 deletions
|
|
@ -10,6 +10,7 @@ ver. 0.9.3 (2015/XX/XXX) - wanna-be-released
|
|||
-----------
|
||||
|
||||
- Fixes:
|
||||
* Fix fail2ban-regex not parsing journalmatch correctly from filter config
|
||||
|
||||
- New Features:
|
||||
|
||||
|
|
|
|||
|
|
@ -297,8 +297,8 @@ class Fail2banRegex(object):
|
|||
"read from %(value)s" % locals()
|
||||
return False
|
||||
elif command[2] == 'addjournalmatch':
|
||||
journalmatch = command[3]
|
||||
self.setJournalMatch(shlex.split(journalmatch))
|
||||
journalmatch = command[3:]
|
||||
self.setJournalMatch(journalmatch)
|
||||
elif command[2] == 'datepattern':
|
||||
datepattern = command[3]
|
||||
self.setDatePattern(datepattern)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue