aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tunnel/defaultroutemonitor.go
diff options
context:
space:
mode:
Diffstat (limited to 'tunnel/defaultroutemonitor.go')
-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 {