BF: datepattern handling in fail2ban-regex

pull/546/head
Daniel Black 2014-01-06 09:55:53 +11:00
parent e6a329210f
commit 95add8a1c5
1 changed files with 3 additions and 0 deletions

View File

@ -280,6 +280,9 @@ class Fail2banRegex(object):
elif command[2] == 'addjournalmatch':
journalmatch = command[3]
self.setJournalMatch(shlex.split(journalmatch))
elif command[2] == 'datepattern':
datepattern = command[3]
self.setDatePattern(datepattern)
else:
print "ERROR: failed to read %s" % value
return False