Skip to content

Commit

Permalink
Backport esp8266#7585
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason2866 committed Sep 17, 2020
1 parent 728bb70 commit bdf1933
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 bdf1933

Please sign in to comment.