summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDavid Lönnhager <david.l@mullvad.net>2022-03-16 13:23:00 +0100
committerDavid Lönnhager <david.l@mullvad.net>2022-03-18 10:27:42 +0100
commit8609033acdc7e7f7da98c3e3330d9792dbb9aa87 (patch)
tree5a93af27ff2a675be02a0708d73f3ef5a385949f
parent57c3f78e298be5168dc2e69b7ba991128f7e12ad (diff)
downloadmullvadvpn-8609033acdc7e7f7da98c3e3330d9792dbb9aa87.tar.xz
mullvadvpn-8609033acdc7e7f7da98c3e3330d9792dbb9aa87.zip
Ignore irrelevant IP protocol in winnet route monitor
-rw-r--r--windows/winnet/src/winnet/routing/defaultroutemonitor.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/windows/winnet/src/winnet/routing/defaultroutemonitor.cpp b/windows/winnet/src/winnet/routing/defaultroutemonitor.cpp
index cd0f7304e2..8e1e2599ad 100644
--- a/windows/winnet/src/winnet/routing/defaultroutemonitor.cpp
+++ b/windows/winnet/src/winnet/routing/defaultroutemonitor.cpp
@@ -32,14 +32,14 @@ DefaultRouteMonitor::DefaultRouteMonitor
{
std::scoped_lock<std::mutex> lock(m_evaluationLock);
- auto status = NotifyRouteChange2(AF_UNSPEC, RouteChangeCallback, this, FALSE, &m_routeNotificationHandle);
+ auto status = NotifyRouteChange2(family, RouteChangeCallback, this, FALSE, &m_routeNotificationHandle);
if (NO_ERROR != status)
{
THROW_WINDOWS_ERROR(status, "Register for route table change notifications");
}
- status = NotifyIpInterfaceChange(AF_UNSPEC, InterfaceChangeCallback, this,
+ status = NotifyIpInterfaceChange(family, InterfaceChangeCallback, this,
FALSE, &m_interfaceNotificationHandle);
if (NO_ERROR != status)
@@ -48,7 +48,7 @@ DefaultRouteMonitor::DefaultRouteMonitor
THROW_WINDOWS_ERROR(status, "Register for network interface change notifications");
}
- status = NotifyUnicastIpAddressChange(AF_UNSPEC, AddressChangeCallback, this,
+ status = NotifyUnicastIpAddressChange(family, AddressChangeCallback, this,
FALSE, &m_addressNotificationHandle);
if (NO_ERROR != status)