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:
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user