diff --git a/src/arduinoWebSockets/WebSockets.h b/src/arduinoWebSockets/WebSockets.h index 0d9b707..499015f 100644 --- a/src/arduinoWebSockets/WebSockets.h +++ b/src/arduinoWebSockets/WebSockets.h @@ -40,6 +40,7 @@ #include #endif +// #define DEBUG_ESP_PORT Serial #ifndef NODEBUG_WEBSOCKETS #ifdef DEBUG_ESP_PORT #define DEBUG_WEBSOCKETS(...) DEBUG_ESP_PORT.printf(__VA_ARGS__) diff --git a/src/arduinoWebSockets/WebSocketsClient.cpp b/src/arduinoWebSockets/WebSocketsClient.cpp index 2e7f4b2..ae30322 100644 --- a/src/arduinoWebSockets/WebSocketsClient.cpp +++ b/src/arduinoWebSockets/WebSocketsClient.cpp @@ -164,6 +164,13 @@ void WebSocketsClient::loop(void) { _client.tcp = NULL; } _client.ssl = new WEBSOCKETS_NETWORK_SSL_CLASS(); + /** Added ourselves */ + // Bug Fix + // Patch the Library to allow connection without + // Certificate Origin Confirmation +#if defined(ESP8266) + _client.ssl->setInsecure(); +#endif _client.tcp = _client.ssl; if(_CA_cert) { DEBUG_WEBSOCKETS("[WS-Client] setting CA certificate");