[network] Set IPv4 type tag on all lwIP platforms, not just esp32 (#17200)

This commit is contained in:
Jonathan Swoboda
2026-06-29 20:29:44 +12:00
committed by Jesse Hills
parent 7a64163c4f
commit 8bc5b97298
+1 -1
View File
@@ -119,7 +119,7 @@ struct IPAddress {
IPAddress(const std::string &in_address) { ipaddr_aton(in_address.c_str(), &ip_addr_); }
IPAddress(ip4_addr_t *other_ip) {
memcpy((void *) &ip_addr_, (void *) other_ip, sizeof(ip4_addr_t));
#if USE_ESP32 && LWIP_IPV6
#if LWIP_IPV6
ip_addr_.type = IPADDR_TYPE_V4;
#endif
}