fix #428 by setting Insecure if we do not have a CA or fingerprint

This commit is contained in:
Links
2019-05-30 18:24:28 +02:00
parent 8ec27b0468
commit df3ef524b6

View File

@ -748,6 +748,10 @@ void WebSocketsClient::connectedCb() {
WebSockets::clientDisconnect(&_client, 1000);
return;
}
} else if(_client.isSSL && !_CA_cert) {
#if defined(wificlientbearssl_h) && !defined(USING_AXTLS)
_client.ssl->setInsecure();
#endif
}
#endif