summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOdd Stranne <odd@mullvad.net>2019-10-07 22:46:31 +0200
committerOdd Stranne <odd@mullvad.net>2019-10-07 22:46:31 +0200
commit0503dfb965770d0cc734c83400b30737d3a12fb0 (patch)
tree7dacf5f21ccf11e9f271886cd2da52de5bcfc425
parentd22e73b1462f038a4483eb01b9980a1261501f8e (diff)
downloadmullvadvpn-0503dfb965770d0cc734c83400b30737d3a12fb0.tar.xz
mullvadvpn-0503dfb965770d0cc734c83400b30737d3a12fb0.zip
Detect network disconnect quicker
-rw-r--r--CHANGELOG.md1
-rw-r--r--windows/winnet/src/winnet/netmonitor.cpp9
2 files changed, 9 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index aea18e32c3..6cb4d3dbbc 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -58,6 +58,7 @@ Line wrap the file at 100 chars. Th
#### Windows
- More adjustments in online/offline detection logic.
+- Be quicker to notice network disconnects.
## [2019.8] - 2019-09-23
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)
{