mirror of https://github.com/fail2ban/fail2ban
Merge pull request #763 from Sean-Der/round-banip-time
BF: Round timeofban before inserting into the persistant databasepull/769/head
commit
8e0a59f04d
|
@ -368,7 +368,7 @@ class Fail2BanDb(object):
|
|||
#TODO: Implement data parts once arbitrary match keys completed
|
||||
cur.execute(
|
||||
"INSERT INTO bans(jail, ip, timeofban, data) VALUES(?, ?, ?, ?)",
|
||||
(jail.name, ticket.getIP(), ticket.getTime(),
|
||||
(jail.name, ticket.getIP(), round(ticket.getTime()),
|
||||
{"matches": ticket.getMatches(),
|
||||
"failures": ticket.getAttempt()}))
|
||||
|
||||
|
|
Loading…
Reference in New Issue