diff options
Diffstat (limited to '')
-rw-r--r-- | tunnel/defaultroutemonitor.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tunnel/defaultroutemonitor.go b/tunnel/defaultroutemonitor.go index 2d63e5db..c3d11789 100644 --- a/tunnel/defaultroutemonitor.go +++ b/tunnel/defaultroutemonitor.go @@ -30,7 +30,9 @@ func bindSocketRoute(family winipcfg.AddressFamily, device *device.Device, ourLU continue } ifrow, err := r[i].InterfaceLUID.Interface() - if err != nil || ifrow.OperStatus != winipcfg.IfOperStatusUp { + if err != nil || ifrow.OperStatus != winipcfg.IfOperStatusUp || + ifrow.InterfaceAndOperStatusFlags & winipcfg.IAOSFNotMediaConnected != 0 || + ifrow.InterfaceAndOperStatusFlags & winipcfg.IAOSFEndPointInterface != 0 { continue } if r[i].Metric < lowestMetric { |