diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-05-22 14:35:27 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-05-22 16:49:48 +0200 |
commit | 70caf92904e2eaea17dc3cd873cca44d5b522dba (patch) | |
tree | eac24aad094e9e3ac6343c1928f455c7b07a9d83 /conf/store.go | |
parent | tunnel: disable firewall before destroying wintun (diff) | |
download | wireguard-windows-70caf92904e2eaea17dc3cd873cca44d5b522dba.tar.xz wireguard-windows-70caf92904e2eaea17dc3cd873cca44d5b522dba.zip |
conf: read files potentially with UTF16
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'conf/store.go')
-rw-r--r-- | conf/store.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/conf/store.go b/conf/store.go index 9c645a6b..2886d027 100644 --- a/conf/store.go +++ b/conf/store.go @@ -84,7 +84,7 @@ func MigrateUnencryptedConfigs() (int, []error) { e++ continue } - _, err = FromWgQuick(string(bytes), "input") + _, err = FromWgQuickWithUnknownEncoding(string(bytes), "input") if err != nil { errs[e] = err e++ @@ -143,7 +143,7 @@ func LoadFromPath(path string) (*Config, error) { return nil, err } } - return FromWgQuick(string(bytes), name) + return FromWgQuickWithUnknownEncoding(string(bytes), name) } func NameFromPath(path string) (string, error) { |