prosody: Don't look to use SSL when LuaSec not available (thanks Florob)

Thu, 09 Apr 2009 18:48:28 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Thu, 09 Apr 2009 18:48:28 +0100
changeset 972
144d0ad17389
parent 971
dd736391bd41
child 975
452ff29e296d

prosody: Don't look to use SSL when LuaSec not available (thanks Florob)

prosody file | annotate | diff | comparison | revisions
--- 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 });

mercurial