aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui
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
commit014c2a75454d6108c4fc6a7495a37874a3535e74 (patch)
treeeac24aad094e9e3ac6343c1928f455c7b07a9d83 /ui
parenttunnel: disable firewall before destroying wintun (diff)
downloadwireguard-windows-014c2a75454d6108c4fc6a7495a37874a3535e74.tar.xz
wireguard-windows-014c2a75454d6108c4fc6a7495a37874a3535e74.zip
conf: read files potentially with UTF16
Diffstat (limited to 'ui')
-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