Changeset

972:144d0ad17389

prosody: Don't look to use SSL when LuaSec not available (thanks Florob)
author Matthew Wild <mwild1@gmail.com>
date Thu, 09 Apr 2009 18:48:28 +0100
parents 971:dd736391bd41
children 975:452ff29e296d
files prosody
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/prosody	Wed Apr 08 23:20:45 2009 +0100
+++ b/prosody	Thu Apr 09 18:48:28 2009 +0100
@@ -115,7 +115,7 @@
 
 eventmanager.fire_event("server-starting");
 
-local global_ssl_ctx = config.get("*", "core", "ssl");
+local global_ssl_ctx = ssl and config.get("*", "core", "ssl");
 if global_ssl_ctx then
 	local default_ssl_ctx = { mode = "server", protocol = "sslv23", capath = "/etc/ssl/certs", verify = "none"; };
 	setmetatable(global_ssl_ctx, { __index = default_ssl_ctx });