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

This commit is contained in:
Jonathan Swoboda
2026-06-24 22:28:06 -04:00
committed by GitHub
parent 1dfafce06a
commit 92554f4e67
+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
}