Skip to content

Commit 9b917fa

Browse files
authored
Fix lwIP init and adapter config (#2886)
1 parent 744e823 commit 9b917fa

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/PAL/Lwip/lwIP_Sockets.cpp

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,10 @@ bool LWIP_SOCKETS_Driver::Initialize()
283283

284284
g_LWIP_SOCKETS_Driver.m_interfaces[i].m_interfaceNumber = interfaceNumber;
285285

286-
UpdateAdapterConfiguration(i, (NetworkInterface_UpdateOperation_Dns), &networkConfiguration);
286+
UpdateAdapterConfiguration(
287+
i,
288+
(NetworkInterface_UpdateOperation_Dhcp | NetworkInterface_UpdateOperation_Dns),
289+
&networkConfiguration);
287290

288291
networkInterface = netif_find_interface(interfaceNumber);
289292

@@ -1344,12 +1347,6 @@ HRESULT LWIP_SOCKETS_Driver::UpdateAdapterConfiguration(
13441347
{
13451348
dhcp_renew(networkInterface);
13461349
}
1347-
else if (
1348-
0 !=
1349-
(updateFlags & (NetworkInterface_UpdateOperation_DhcpRelease | NetworkInterface_UpdateOperation_DhcpRenew)))
1350-
{
1351-
return CLR_E_INVALID_PARAMETER;
1352-
}
13531350
}
13541351
#endif
13551352

0 commit comments

Comments
 (0)