forked from Links2004/arduinoWebSockets
disconnect on certificate mismatch
This commit is contained in:
1 parent
73680279f5
commit
07bd519940
1 file changed
+1
@@ -140,6 +140,7 @@ void WebSocketsClient::loop(void) {
|
||||
if (_client.isSSL && _client.fingerprint != NULL) {
|
||||
if (!(((WiFiClientSecure*)_client.tcp)->verify(_client.fingerprint, _host.c_str()))) {
|
||||
DEBUG_WEBSOCKETS("[WS-Client] certificate mismatch\n");
|
||||
WebSockets::clientDisconnect(&_client, 1000);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user