mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-06 05:21:22 +03:00
Check also if IP is not IPADDR_NONE (#7585)
This commit is contained in:
parent
8258db53da
commit
08f170510d
@ -32,7 +32,7 @@ IPAddress::IPAddress() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool IPAddress::isSet () const {
|
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) {
|
IPAddress::IPAddress(uint8_t first_octet, uint8_t second_octet, uint8_t third_octet, uint8_t fourth_octet) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user