8000 disconnect on certificate mismatch · Gefanxe/arduinoWebSockets@07bd519 · GitHub
[go: up one dir, main page]

Skip to content

Commit 07bd519

Browse files
Chris HinzeChris Hinze
authored andcommitted
disconnect on certificate mismatch
1 parent 7368027 commit 07bd519

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/WebSocketsClient.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ void WebSocketsClient::loop(void) {
140140
if (_client.isSSL && _client.fingerprint != NULL) {
141141
if (!(((WiFiClientSecure*)_client.tcp)->verify(_client.fingerprint, _host.c_str()))) {
142142
DEBUG_WEBSOCKETS("[WS-Client] certificate mismatch\n");
143+
WebSockets::clientDisconnect(&_client, 1000);
143144
return;
144145
}
145146
}

0 commit comments

Comments
 (0)
0