Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/arduinoWebSockets/WebSockets.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
#include <functional>
#endif

// #define DEBUG_ESP_PORT Serial
#ifndef NODEBUG_WEBSOCKETS
#ifdef DEBUG_ESP_PORT
#define DEBUG_WEBSOCKETS(...) DEBUG_ESP_PORT.printf(__VA_ARGS__)
Expand Down
7 changes: 7 additions & 0 deletions src/arduinoWebSockets/WebSocketsClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down