From a387f705cf1bb1a9740a31d89d0e8b81c72ec85e Mon Sep 17 00:00:00 2001 From: Noneangel <1888627+Noneangel@users.noreply.github.com> Date: Tue, 19 Aug 2025 19:08:44 +0200 Subject: [PATCH 1/2] Remove unused import --- internal/fail2ban/client.go | 1 - 1 file changed, 1 deletion(-) 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" From a9f91656b5796b2e082e84d2ab254989c1fe4762 Mon Sep 17 00:00:00 2001 From: Noneangel <1888627+Noneangel@users.noreply.github.com> Date: Tue, 19 Aug 2025 19:11:10 +0200 Subject: [PATCH 2/2] null pointer --- pkg/web/templates/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +