diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-12-06 11:17:37 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-12-06 11:17:37 +0100 |
commit | 79e15d44e838e41f345de29761dbd18ad8f37dd8 (patch) | |
tree | 7d9d17164cf8c983b38d97a2731fcb578381e7c4 | |
parent | 5f1d4c0da0c9ad7c218436c6b83414ccd117f4ee (diff) |
Reenable ssl.
-rw-r--r-- | src/muniad.cc | 16 |
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; |