Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions libraries/ESP8266WiFi/src/WiFiClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ uint16_t WiFiClient::remotePort()

IPAddress WiFiClient::localIP()
{
if (!_client)
if (!_client || !_client->getLocalAddress())
return IPAddress(0U);

return IPAddress(_client->getLocalAddress());
Expand All @@ -389,7 +389,7 @@ void WiFiClient::stopAll()
}


void WiFiClient::stopAllExcept(WiFiClient* except)
void WiFiClient::stopAllExcept(WiFiClient* except)
{
for (WiFiClient* it = _s_first; it; it = it->_next) {
if (it != except) {
Expand Down