aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tunnel
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2026-04-13 03:34:48 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2026-04-16 16:21:33 +0200
commit9bc76016ccb54ebec3503d4a88017eec8ac2925a (patch)
tree41714e49c2b2f358820ad7bf65917d5e025b5412 /tunnel
parentringlogger: close file on Truncate failure (diff)
downloadwireguard-windows-master.tar.xz
wireguard-windows-master.zip
global: format codeHEADmaster
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'tunnel')
-rw-r--r--tunnel/addressconfig.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/tunnel/addressconfig.go b/tunnel/addressconfig.go
index 08ef459e..7c6dd3b7 100644
--- a/tunnel/addressconfig.go
+++ b/tunnel/addressconfig.go
@@ -99,7 +99,7 @@ startOver:
}
if !conf.Interface.TableOff &&
- ((foundRoute4 && family == windows.AF_INET) || (foundRoute6 && family == windows.AF_INET6)) {
+ ((foundRoute4 && family == windows.AF_INET) || (foundRoute6 && family == windows.AF_INET6)) {
err = luid.SetRoutesForFamily(family, deduplicatedRoutes)
if err == windows.ERROR_NOT_FOUND && retryOnFailure {
goto startOver
@@ -138,8 +138,8 @@ startOver:
ipif.ManagedAddressConfigurationSupported = false
ipif.OtherStatefulConfigurationSupported = false
if conf.Interface.MTU > 0 &&
- (((foundAddress4 || foundRoute4) && family == windows.AF_INET) ||
- ((foundAddress6 || foundRoute6) && family == windows.AF_INET6)) {
+ (((foundAddress4 || foundRoute4) && family == windows.AF_INET) ||
+ ((foundAddress6 || foundRoute6) && family == windows.AF_INET6)) {
ipif.NLMTU = uint32(conf.Interface.MTU)
}
if (family == windows.AF_INET && foundDefault4) || (family == windows.AF_INET6 && foundDefault6) {