mirror of https://github.com/fail2ban/fail2ban
BF: Round timeofban before inserting into the persistant database
parent
c7de888cd3
commit
ac9fa90625
|
@ -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