diff --git a/internal/fail2ban/client.go b/internal/fail2ban/client.go index 6ed4b07..0e54ef5 100644 --- a/internal/fail2ban/client.go +++ b/internal/fail2ban/client.go @@ -19,7 +19,6 @@ package fail2ban import ( "errors" "fmt" - "os" "os/exec" "strings" "time" diff --git a/pkg/web/templates/index.html b/pkg/web/templates/index.html index 0667a27..834ca3e 100644 --- a/pkg/web/templates/index.html +++ b/pkg/web/templates/index.html @@ -844,7 +844,7 @@

Recent Bans

-

${data.lastBans.length}

+

${data.lastBans ? data.lastBans.length : 0}

`; @@ -1501,4 +1501,4 @@ - \ No newline at end of file +