mirror of https://github.com/fail2ban/fail2ban
- Added new time format. No idea from where it comes...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@714 a942ae1a-1317-0410-a47c-b1dcaea8d605_tent/ipv6_via_aInfo
parent
391a38a7a8
commit
f6d44e6bc8
|
@ -113,6 +113,12 @@ class DateDetector:
|
|||
template.setRegex("^\d{2}:\d{2}:\d{2}")
|
||||
template.setPattern("%H:%M:%S")
|
||||
self.__templates.append(template)
|
||||
# <09/16/08@05:03:30>
|
||||
template = DateStrptime()
|
||||
template.setName("<Month/Day/Year@Hour:Minute:Second>")
|
||||
template.setRegex("^<\d{2}/\d{2}/\d{2}@\d{2}:\d{2}:\d{2}>")
|
||||
template.setPattern("<%m/%d/%y@%H:%M:%S>")
|
||||
self.__templates.append(template)
|
||||
finally:
|
||||
self.__lock.release()
|
||||
|
||||
|
|
Loading…
Reference in New Issue