Skip to content

Commit

Permalink
Check also if IP is not IPADDR_NONE (#7585)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruggi99 authored Sep 9, 2020
1 parent 8258db5 commit 08f1705
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cores/esp8266/IPAddress.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 08f1705

Please sign in to comment.