[*] Caught Windows XP network iface regression

This commit is contained in:
Reece Wilson 2023-10-30 15:42:15 +00:00
parent e071b3d509
commit 01824d6589

View File

@ -276,10 +276,9 @@ namespace Aurora::IO::Net
{
auto pAdapterEx = AuStaticCast<NetAdapter>(pAdapter);
pAdapterEx->dhcp = pIPAddrTable->DhcpEnabled;
if (pAdapterEx->device == AuString(pIPAddrTable->AdapterName))
{
pAdapterEx->dhcp = pIPAddrTable->DhcpEnabled;
pAdapterEx->gateway = IPAddress(pIPAddrTable->GatewayList.IpAddress.String);
}
}