aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-10-09 14:47:57 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-10-09 14:47:57 +0200
commit5ea64608500a832eca79455e817643427c014e1a (patch)
tree87d6d019c953d18571cebb2664ae75a827b9dd09
parentbuild: do not build modules when remastering and sort statements (diff)
downloadwireguard-windows-5ea64608500a832eca79455e817643427c014e1a.tar.xz
wireguard-windows-5ea64608500a832eca79455e817643427c014e1a.zip
Revert "tunnel: check for endpoint interfaces and media connection state"
This reverts commit cf6f599a4a65e89929ffc12982346c8e9012552c. It broke people's setups.
-rw-r--r--tunnel/defaultroutemonitor.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/tunnel/defaultroutemonitor.go b/tunnel/defaultroutemonitor.go
index c3d11789..2d63e5db 100644
--- a/tunnel/defaultroutemonitor.go
+++ b/tunnel/defaultroutemonitor.go
@@ -30,9 +30,7 @@ func bindSocketRoute(family winipcfg.AddressFamily, device *device.Device, ourLU
continue
}
ifrow, err := r[i].InterfaceLUID.Interface()
- if err != nil || ifrow.OperStatus != winipcfg.IfOperStatusUp ||
- ifrow.InterfaceAndOperStatusFlags & winipcfg.IAOSFNotMediaConnected != 0 ||
- ifrow.InterfaceAndOperStatusFlags & winipcfg.IAOSFEndPointInterface != 0 {
+ if err != nil || ifrow.OperStatus != winipcfg.IfOperStatusUp {
continue
}
if r[i].Metric < lowestMetric {