From 925308b2d4a5e127921a72ce112144e86a3c9e77 Mon Sep 17 00:00:00 2001 From: Marvin Preuss Date: Mon, 7 Feb 2022 15:17:44 +0100 Subject: [PATCH] fix: not setting default dir if none is set --- cmd/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" }