From cfa8b3dc1fc8dd6633e86dfc37d8a319e8f9566a Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Wed, 9 Oct 2019 14:47:57 +0200 Subject: Revert "tunnel: check for endpoint interfaces and media connection state" This reverts commit cf6f599a4a65e89929ffc12982346c8e9012552c. It broke people's setups. Signed-off-by: Jason A. Donenfeld --- tunnel/defaultroutemonitor.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'tunnel/defaultroutemonitor.go') 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 { -- cgit v1.2.3-59-g8ed1b