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.
This commit is contained in:
parent
8452caf4c5
commit
1f27dace2d
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ func readParamsFromCli(settings *AppSettings) {
|
||||||
Bool()
|
Bool()
|
||||||
socketPath := kingpin.
|
socketPath := kingpin.
|
||||||
Flag("socket", "path to the fail2ban server socket").
|
Flag("socket", "path to the fail2ban server socket").
|
||||||
Default("").
|
Default("/var/run/fail2ban/fail2ban.sock").
|
||||||
Envar(socketEnvName).
|
Envar(socketEnvName).
|
||||||
String()
|
String()
|
||||||
fileCollectorEnabled := kingpin.
|
fileCollectorEnabled := kingpin.
|
||||||
|
|
Loading…
Reference in a new issue