aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/conf/path_windows.go
diff options
context:
space:
mode:
Diffstat (limited to 'conf/path_windows.go')
-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