aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/conf
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-08-28 20:38:30 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2019-08-30 08:47:21 -0600
commit2f83e4df50d954decf9abe29197aaecb68a2da7b (patch)
tree8e4cc0d04e49e5a2bfc60c7dfd11434c05b13242 /conf
parentversion: bump (diff)
downloadwireguard-windows-2f83e4df50d954decf9abe29197aaecb68a2da7b.tar.xz
wireguard-windows-2f83e4df50d954decf9abe29197aaecb68a2da7b.zip
version: use ProductName and ProductVersion as strings
Diffstat (limited to 'conf')
-rw-r--r--conf/path_windows.go5
1 files changed, 4 insertions, 1 deletions
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