1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-29 16:03:14 +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

@ -234,7 +234,7 @@ void WiFiUDP::flush()
IPAddress WiFiUDP::remoteIP() const
{
if (!_ctx)
return IPNoAddress;
return INADDR_ANY;
return _ctx->getRemoteAddress();
}
@ -250,7 +250,7 @@ uint16_t WiFiUDP::remotePort() const
IPAddress WiFiUDP::destinationIP() const
{
if (!_ctx)
return IPNoAddress;
return INADDR_ANY;
return _ctx->getDestAddress();
}