File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 4040#include < functional>
4141#endif
4242
43+ // #define DEBUG_ESP_PORT Serial
4344#ifndef NODEBUG_WEBSOCKETS
4445#ifdef DEBUG_ESP_PORT
4546#define DEBUG_WEBSOCKETS (...) DEBUG_ESP_PORT.printf(__VA_ARGS__)
Original file line number Diff line number Diff line change @@ -164,6 +164,13 @@ void WebSocketsClient::loop(void) {
164164 _client.tcp = NULL ;
165165 }
166166 _client.ssl = new WEBSOCKETS_NETWORK_SSL_CLASS ();
167+ /* * Added ourselves */
168+ // Bug Fix
169+ // Patch the Library to allow connection without
170+ // Certificate Origin Confirmation
171+ #if defined(ESP8266)
172+ _client.ssl ->setInsecure ();
173+ #endif
167174 _client.tcp = _client.ssl ;
168175 if (_CA_cert) {
169176 DEBUG_WEBSOCKETS (" [WS-Client] setting CA certificate" );
You can’t perform that action at this time.
0 commit comments