aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/conf/path_windows.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-09-18 14:51:39 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2019-09-23 15:29:18 +0200
commit66de239481b97164087b4e27ff295ec97d93c079 (patch)
tree430ef7b2e8695030b4a1a574d5759501cb89a0e0 /conf/path_windows.go
parentglobal: use SECURITY_DESCRIPTOR apis from x/sys/windows (diff)
downloadwireguard-windows-66de239481b97164087b4e27ff295ec97d93c079.tar.xz
wireguard-windows-66de239481b97164087b4e27ff295ec97d93c079.zip
conf: do not create config folder and migrate if preset
Diffstat (limited to 'conf/path_windows.go')
-rw-r--r--conf/path_windows.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/conf/path_windows.go b/conf/path_windows.go
index 2997114e..a53968c5 100644
--- a/conf/path_windows.go
+++ b/conf/path_windows.go
@@ -14,6 +14,7 @@ import (
var cachedConfigFileDir string
var cachedRootDir string
+var disableAutoMigration bool
func tunnelConfigurationsDirectory() (string, error) {
if cachedConfigFileDir != "" {
@@ -38,6 +39,7 @@ func tunnelConfigurationsDirectory() (string, error) {
// consumers of our libraries who might want to do strange things.
func PresetRootDirectory(root string) {
cachedRootDir = root
+ disableAutoMigration = true
}
func RootDirectory() (string, error) {