diff --git a/internal/config/settings.go b/internal/config/settings.go index 1225a91..b8f0f75 100644 --- a/internal/config/settings.go +++ b/internal/config/settings.go @@ -296,7 +296,7 @@ actionban = /usr/bin/curl -X POST http://127.0.0.1:8080/api/ban \ --arg hostname '' \ --arg failures '' \ --arg whois "$(whois || echo 'missing whois program')" \ - --arg logs "$(grep -wF | )" \ + --arg logs "$(tac | grep -wF )" \ '{ip: $ip, jail: $jail, hostname: $hostname, failures: $failures, whois: $whois, logs: $logs}')" [Init] diff --git a/pkg/web/handlers.go b/pkg/web/handlers.go index e6111f7..ebd7844 100644 --- a/pkg/web/handlers.go +++ b/pkg/web/handlers.go @@ -525,14 +525,23 @@ func sendBanAlert(ip, jail, hostname, failures, whois, logs, country string, set