diff --git a/cmd/root.go b/cmd/root.go index 356906a..abe7d77 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -163,7 +163,7 @@ func init() { } func initConfig() { - if cfgDir != "" { + if cfgDir == "" { cfgDir = "/etc/wireguard" }