diff options
-rw-r--r-- | driver/device.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/driver/device.c b/driver/device.c index 2890e41..c718c91 100644 --- a/driver/device.c +++ b/driver/device.c @@ -296,7 +296,23 @@ IpInterfaceChangeNotification( } } else if (NotificationType == MibParameterNotification) + { *Mtu = Row->NlMtu; + + static BOOLEAN HaveNotified; + if (!HaveNotified) + { + HaveNotified = TRUE; + RTL_OSVERSIONINFOW OsVersionInfo = { .dwOSVersionInfoSize = sizeof(OsVersionInfo) }; + RtlGetVersion(&OsVersionInfo); + LogInfo( + Wg, + "MTU notifier working as expected on %u.%u.%u; please notify team@wireguard.com", + OsVersionInfo.dwMajorVersion, + OsVersionInfo.dwMinorVersion, + OsVersionInfo.dwBuildNumber); + } + } cleanupDeviceListLock: MuReleasePushLockShared(&DeviceListLock); } |