Allow non standard cert dir

This commit is contained in:
2022-09-05 14:32:08 +02:00
parent 2914e1fa59
commit b695f4cb6c
3 changed files with 8 additions and 3 deletions
+5
View File
@@ -10,7 +10,12 @@ Websocket::Websocket(std::string host,
ix::initNetSystem();
#endif
ix::SocketTLSOptions options;
options.caFile = "CUSTOM";
options.tls = true;
webSocket = new ix::WebSocket();
webSocket->setTLSOptions(options);
webSocket->enableAutomaticReconnection();
webSocket->setUrl(host);
webSocket->setOnMessageCallback([this](const ix::WebSocketMessagePtr &msg) {