From 2f83e4df50d954decf9abe29197aaecb68a2da7b Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Wed, 28 Aug 2019 20:38:30 -0600 Subject: version: use ProductName and ProductVersion as strings --- conf/path_windows.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'conf') diff --git a/conf/path_windows.go b/conf/path_windows.go index 3d0f2504..041afe84 100644 --- a/conf/path_windows.go +++ b/conf/path_windows.go @@ -10,6 +10,8 @@ import ( "path/filepath" "golang.org/x/sys/windows" + + "golang.zx2c4.com/wireguard/windows/version" ) var cachedConfigFileDir string @@ -41,7 +43,8 @@ func RootDirectory() (string, error) { if err != nil { return "", err } - c := filepath.Join(root, "WireGuard") + name, _ := version.RunningNameVersion() + c := filepath.Join(root, name) err = os.MkdirAll(c, os.ModeDir|0700) if err != nil { return "", err -- cgit v1.2.3-59-g8ed1b