Skip to content

Commit

Permalink
Fix / Add ip column to db index 'bans_jail_timeofban_ip'
Browse files Browse the repository at this point in the history
  • Loading branch information
vladpirlog committed Dec 27, 2023
1 parent c6244a8 commit 1d738ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fail2ban/server/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ class Fail2BanDb(object):
"data JSON, " \
"FOREIGN KEY(jail) REFERENCES jails(name) " \
");" \
"CREATE INDEX IF NOT EXISTS bans_jail_timeofban_ip ON bans(jail, timeofban);" \
"CREATE INDEX IF NOT EXISTS bans_jail_timeofban_ip ON bans(jail, timeofban, ip);" \
"CREATE INDEX IF NOT EXISTS bans_jail_ip ON bans(jail, ip);" \
"CREATE INDEX IF NOT EXISTS bans_ip ON bans(ip);")
,('bips', "CREATE TABLE IF NOT EXISTS bips(" \
Expand Down

0 comments on commit 1d738ea

Please sign in to comment.