BF: datepattern handling in fail2ban-regex

pull/546/head
Daniel Black 11 years ago
parent e6a329210f
commit 95add8a1c5

@ -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

Loading…
Cancel
Save