diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-09-18 14:51:39 -0600 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-09-23 15:29:18 +0200 |
commit | 66de239481b97164087b4e27ff295ec97d93c079 (patch) | |
tree | 430ef7b2e8695030b4a1a574d5759501cb89a0e0 /conf/store.go | |
parent | global: use SECURITY_DESCRIPTOR apis from x/sys/windows (diff) | |
download | wireguard-windows-66de239481b97164087b4e27ff295ec97d93c079.tar.xz wireguard-windows-66de239481b97164087b4e27ff295ec97d93c079.zip |
conf: do not create config folder and migrate if preset
Diffstat (limited to 'conf/store.go')
-rw-r--r-- | conf/store.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/conf/store.go b/conf/store.go index 504a0d01..21bd3a22 100644 --- a/conf/store.go +++ b/conf/store.go @@ -129,7 +129,9 @@ func LoadFromName(name string) (*Config, error) { } func LoadFromPath(path string) (*Config, error) { - tunnelConfigurationsDirectory() // Provoke migrations, if needed. + if !disableAutoMigration { + tunnelConfigurationsDirectory() // Provoke migrations, if needed. + } name, err := NameFromPath(path) if err != nil { |