(cobra) Add TLS options to all cobra commands and classes. Add example to the doc.

This commit is contained in:
Benjamin Sergeant
2019-12-19 20:49:28 -08:00
parent 3e786fe23a
commit 52221906f6
21 changed files with 295 additions and 76 deletions

View File

@ -9,6 +9,7 @@
#include <nlohmann/json.hpp>
#include <string>
#include <vector>
#include <ixwebsocket/IXSocketTLSOptions.h>
namespace snake
{
@ -26,6 +27,9 @@ namespace snake
// AppKeys
nlohmann::json apps;
// TLS options
ix::SocketTLSOptions socketTLSOptions;
// Misc
bool verbose;
};

View File

@ -20,7 +20,7 @@ namespace snake
: _appConfig(appConfig)
, _server(appConfig.port, appConfig.hostname)
{
;
_server.setTLSOptions(appConfig.socketTLSOptions);
}
//