1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-16 00:43:00 +03:00

more compatibility fixes to IPAddress, restore INADDR_ANY, INADDR_NONE (#5416)

This commit is contained in:
david gauchard
2018-12-03 02:43:19 +01:00
committed by Develo
parent 324b3f9678
commit 773f306ef9
4 changed files with 13 additions and 8 deletions

View File

@ -127,7 +127,7 @@ int DNSClient::getHostByName(const char* aHostname, IPAddress& aResult)
}
// Check we've got a valid DNS server to use
if (iDNSServer == IPNoAddress)
if (iDNSServer == INADDR_NONE || iDNSServer == INADDR_ANY)
{
return INVALID_SERVER;
}