Bug 1937367 - Make sure to not query local or offline adapters r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D238576
This commit is contained in:
@@ -28,7 +28,9 @@ mozilla::LazyLogModule gDhcpUtilsLog("dhcpUtils");
|
||||
#define LOG(args) MOZ_LOG(gDhcpUtilsLog, LogLevel::Debug, args)
|
||||
|
||||
bool IsCurrentAndHasDHCP(PIP_ADAPTER_ADDRESSES aAddresses) {
|
||||
return aAddresses->OperStatus == 1 &&
|
||||
return aAddresses->OperStatus == IfOperStatusUp &&
|
||||
aAddresses->IfType != IF_TYPE_SOFTWARE_LOOPBACK &&
|
||||
(aAddresses->Flags & IP_ADAPTER_DHCP_ENABLED) &&
|
||||
(aAddresses->Dhcpv4Server.iSockaddrLength ||
|
||||
aAddresses->Dhcpv6Server.iSockaddrLength);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user