Split websocket ssl settings for public and private.

This commit is contained in:
Arthur Britto
2013-01-20 14:42:08 -08:00
parent 774ec78e5d
commit 5d8e6734c3
4 changed files with 22 additions and 1 deletions

View File

@@ -59,7 +59,7 @@ void WSDoor::startListening()
SSL_CTX_set_tmp_dh_callback(mCtx->native_handle(), handleTmpDh);
if (theConfig.WEBSOCKET_SECURE)
if (mPublic ? theConfig.WEBSOCKET_PUBLIC_SECURE : theConfig.WEBSOCKET_SECURE)
{
// Construct a single handler for all requests.
websocketpp::server_tls::handler::ptr handler(new WSServerHandler<websocketpp::server_tls>(mCtx, mPublic));