From 08f170510d69423ab58b0fa1edf31b4a5373eba4 Mon Sep 17 00:00:00 2001 From: Ruggero Tomaselli Date: Wed, 9 Sep 2020 12:03:41 +0200 Subject: [PATCH] Check also if IP is not IPADDR_NONE (#7585) --- cores/esp8266/IPAddress.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cores/esp8266/IPAddress.cpp b/cores/esp8266/IPAddress.cpp index 940f5c14d9..5b502d8730 100644 --- a/cores/esp8266/IPAddress.cpp +++ b/cores/esp8266/IPAddress.cpp @@ -32,7 +32,7 @@ IPAddress::IPAddress() { } bool IPAddress::isSet () const { - return !ip_addr_isany(&_ip); + return !ip_addr_isany(&_ip) && ((*this) != IPADDR_NONE); } IPAddress::IPAddress(uint8_t first_octet, uint8_t second_octet, uint8_t third_octet, uint8_t fourth_octet) {