summaryrefslogtreecommitdiffhomepage
path: root/windows
diff options
context:
space:
mode:
authorOdd Stranne <odd@mullvad.net>2019-10-07 23:06:42 +0200
committerOdd Stranne <odd@mullvad.net>2019-10-07 23:06:42 +0200
commitb52816cb1337a99fa1031f521eb83e679ff00c33 (patch)
tree7dacf5f21ccf11e9f271886cd2da52de5bcfc425 /windows
parentd22e73b1462f038a4483eb01b9980a1261501f8e (diff)
parent0503dfb965770d0cc734c83400b30737d3a12fb0 (diff)
downloadmullvadvpn-b52816cb1337a99fa1031f521eb83e679ff00c33.tar.xz
mullvadvpn-b52816cb1337a99fa1031f521eb83e679ff00c33.zip
Merge branch 'win-detect-offline-quicker'
Diffstat (limited to 'windows')
-rw-r--r--windows/winnet/src/winnet/netmonitor.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/windows/winnet/src/winnet/netmonitor.cpp b/windows/winnet/src/winnet/netmonitor.cpp
index 777925cce3..bf6636fcd1 100644
--- a/windows/winnet/src/winnet/netmonitor.cpp
+++ b/windows/winnet/src/winnet/netmonitor.cpp
@@ -19,7 +19,14 @@ bool ValidInterfaceType(const MIB_IF_ROW2 &iface)
}
}
- if (FALSE != iface.InterfaceAndOperStatusFlags.FilterInterface
+ //
+ // (Windows 10, and possibly others.)
+ // The BT adapter is erronously not marked as representing hardware.
+ // By filtering on this we currently do not support BT tethering.
+ //
+
+ if (FALSE == iface.InterfaceAndOperStatusFlags.HardwareInterface
+ || FALSE != iface.InterfaceAndOperStatusFlags.FilterInterface
|| 0 == iface.PhysicalAddressLength
|| FALSE != iface.InterfaceAndOperStatusFlags.EndPointInterface)
{