We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 324eb56 commit b666435Copy full SHA for b666435
1 file changed
libraries/ESP8266WiFi/src/WiFiClient.cpp
@@ -351,10 +351,10 @@ WiFiClient::operator bool()
351
352
IPAddress WiFiClient::remoteIP()
353
{
354
- if (!_client)
+ if (!_client || !_client->getRemoteAddress())
355
return IPAddress(0U);
356
357
- return IPAddress(_client->getRemoteAddress());
+ return _client->getRemoteAddress();
358
}
359
360
uint16_t WiFiClient::remotePort()
0 commit comments