From 7b32efe1009c32085327fe01649304fa31b82b32 Mon Sep 17 00:00:00 2001 From: shripad621git Date: Mon, 22 Apr 2024 09:08:29 +0530 Subject: [PATCH] Compilation fix when IPV4 is disabled. --- src/platform/ESP32/ConnectivityManagerImpl_WiFi.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/platform/ESP32/ConnectivityManagerImpl_WiFi.cpp b/src/platform/ESP32/ConnectivityManagerImpl_WiFi.cpp index 3810862a0f57b6..7f228b1fe4ee17 100644 --- a/src/platform/ESP32/ConnectivityManagerImpl_WiFi.cpp +++ b/src/platform/ESP32/ConnectivityManagerImpl_WiFi.cpp @@ -999,6 +999,7 @@ void ConnectivityManagerImpl::UpdateInternetConnectivityState(void) // If the station interface has been assigned an IPv4 address, and has // an IPv4 gateway, then presume that the device has IPv4 Internet // connectivity. +#if LWIP_IPV4 if (!ip4_addr_isany_val(*netif_ip4_addr(netif)) && !ip4_addr_isany_val(*netif_ip4_gw(netif))) { haveIPv4Conn = true; @@ -1013,6 +1014,7 @@ void ConnectivityManagerImpl::UpdateInternetConnectivityState(void) IPAddress::FromString(addrStr, addr); } } +#endif // Search among the IPv6 addresses assigned to the interface for a Global Unicast // address (2000::/3) that is in the valid state. If such an address is found...