We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b72a0dc commit d738ad0Copy full SHA for d738ad0
1 file changed
src/arduino_homekit_server.cpp
@@ -2987,6 +2987,13 @@ client_context_t* homekit_server_accept_client(homekit_server_t *server) {
2987
delete wifiClient;
2988
return NULL;
2989
}
2990
+ if (!wifiClient->localIP().isSet() ||
2991
+ !wifiClient->remoteIP().isSet()) {
2992
+ INFO("wifiClient creation error, IP address is not set");
2993
+ wifiClient->stop();
2994
+ delete wifiClient;
2995
+ return NULL;
2996
+ }
2997
} else {
2998
2999
0 commit comments