summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/muniad.cc16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/muniad.cc b/src/muniad.cc
index 995bb67..b478484 100644
--- a/src/muniad.cc
+++ b/src/muniad.cc
@@ -128,13 +128,15 @@ int main(int argc, char **argv)
info.protocols = protocols;
info.extensions = libwebsocket_get_internal_extensions();
- //if (!use_ssl) {
- info.ssl_cert_filepath = cert_path;
- info.ssl_private_key_filepath = NULL;
- //} else {
- // info.ssl_cert_filepath = LOCAL_RESOURCE_PATH"/libwebsockets-test-server.pem";
- // info.ssl_private_key_filepath = LOCAL_RESOURCE_PATH"/libwebsockets-test-server.key.pem";
-//}
+ if (!use_ssl) {
+ info.ssl_cert_filepath = cert_path;
+ info.ssl_private_key_filepath = NULL;
+ } else {
+ info.ssl_cert_filepath =
+ LOCAL_RESOURCE_PATH"/libwebsockets-test-server.pem";
+ info.ssl_private_key_filepath =
+ LOCAL_RESOURCE_PATH"/libwebsockets-test-server.key.pem";
+ }
info.gid = -1;
info.uid = -1;