aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui/tunnelspage.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-05-22 14:35:27 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-05-22 16:49:48 +0200
commit70caf92904e2eaea17dc3cd873cca44d5b522dba (patch)
treeeac24aad094e9e3ac6343c1928f455c7b07a9d83 /ui/tunnelspage.go
parenttunnel: disable firewall before destroying wintun (diff)
downloadwireguard-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 'ui/tunnelspage.go')
-rw-r--r--ui/tunnelspage.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/tunnelspage.go b/ui/tunnelspage.go
index 847036fe..3c60b728 100644
--- a/ui/tunnelspage.go
+++ b/ui/tunnelspage.go
@@ -332,7 +332,7 @@ func (tp *TunnelsPage) importFiles(paths []string) {
lastErr = fmt.Errorf("Another tunnel already exists with the name ā€˜%sā€™", unparsedConfig.Name)
continue
}
- config, err := conf.FromWgQuick(unparsedConfig.Config, unparsedConfig.Name)
+ config, err := conf.FromWgQuickWithUnknownEncoding(unparsedConfig.Config, unparsedConfig.Name)
if err != nil {
lastErr = err
continue