From 1f27dace2dbdb26c2db5e6079a1d9310324fc8b2 Mon Sep 17 00:00:00 2001 From: Hector Date: Fri, 18 Feb 2022 22:15:32 +0000 Subject: [PATCH] feat: add default value for fail2ban socket path Update the CLI param parser to include a default value for the fail2ban socket file path. This is the default location fail2ban creates the socket file on an ubuntu-based system. --- src/cfg/cfg.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cfg/cfg.go b/src/cfg/cfg.go index 76ad918..062d11f 100644 --- a/src/cfg/cfg.go +++ b/src/cfg/cfg.go @@ -47,7 +47,7 @@ func readParamsFromCli(settings *AppSettings) { Bool() socketPath := kingpin. Flag("socket", "path to the fail2ban server socket"). - Default(""). + Default("/var/run/fail2ban/fail2ban.sock"). Envar(socketEnvName). String() fileCollectorEnabled := kingpin.