aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tunnel
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-01-24 20:26:43 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2020-01-24 20:29:02 +0100
commit0015b7e71a4c9ab92a378347a35ecd0eabe2c211 (patch)
treeac925174d69e2077ca166f938de2a5e397f29228 /tunnel
parentversion: bump (diff)
downloadwireguard-windows-0015b7e71a4c9ab92a378347a35ecd0eabe2c211.tar.xz
wireguard-windows-0015b7e71a4c9ab92a378347a35ecd0eabe2c211.zip
tunnel: deduplicate addresses from config
Windows doesn't like it when passing these off to its config. Reported-by: Jonathan Tooker <jonathan.tooker@netprotect.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'tunnel')
-rw-r--r--tunnel/service.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/tunnel/service.go b/tunnel/service.go
index 8bd981d6..e535894b 100644
--- a/tunnel/service.go
+++ b/tunnel/service.go
@@ -118,6 +118,7 @@ func (service *tunnelService) Execute(args []string, r <-chan svc.ChangeRequest,
serviceError = services.ErrorLoadConfiguration
return
}
+ conf.DeduplicateNetworkEntries()
err = CopyConfigOwnerToIPCSecurityDescriptor(service.Path)
if err != nil {
serviceError = services.ErrorLoadConfiguration