File tree 1 file changed +2
-0
lines changed
1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -999,6 +999,7 @@ void ConnectivityManagerImpl::UpdateInternetConnectivityState(void)
999
999
// If the station interface has been assigned an IPv4 address, and has
1000
1000
// an IPv4 gateway, then presume that the device has IPv4 Internet
1001
1001
// connectivity.
1002
+ #if LWIP_IPV4
1002
1003
if (!ip4_addr_isany_val (*netif_ip4_addr (netif)) && !ip4_addr_isany_val (*netif_ip4_gw (netif)))
1003
1004
{
1004
1005
haveIPv4Conn = true ;
@@ -1013,6 +1014,7 @@ void ConnectivityManagerImpl::UpdateInternetConnectivityState(void)
1013
1014
IPAddress::FromString (addrStr, addr);
1014
1015
}
1015
1016
}
1017
+ #endif
1016
1018
1017
1019
// Search among the IPv6 addresses assigned to the interface for a Global Unicast
1018
1020
// address (2000::/3) that is in the valid state. If such an address is found...
You can’t perform that action at this time.
0 commit comments