Skip to content

Commit

Permalink
Backport Fix Error in hostByName with low timeout
Browse files Browse the repository at this point in the history
Backport esp8266#7585
  • Loading branch information
Jason2866 authored Mar 22, 2021
1 parent c170794 commit 040d45e
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 040d45e

Please sign in to comment.