aboutsummaryrefslogtreecommitdiffstats
path: root/prosody
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-04-09 18:48:28 +0100
committerMatthew Wild <mwild1@gmail.com>2009-04-09 18:48:28 +0100
commitc1d13724baae419c8b3c7df47e0f93c4e71ca5d8 (patch)
tree691b3d9e90d51405ad4572a5a6247de9d710dc1c /prosody
parentce51ad8d0741391ea8587e24c5f5d60f9be6a20f (diff)
downloadprosody-c1d13724baae419c8b3c7df47e0f93c4e71ca5d8.tar.gz
prosody-c1d13724baae419c8b3c7df47e0f93c4e71ca5d8.zip
prosody: Don't look to use SSL when LuaSec not available (thanks Florob)
Diffstat (limited to 'prosody')
-rwxr-xr-xprosody2
1 files changed, 1 insertions, 1 deletions
diff --git a/prosody b/prosody
index 42e4eb50..0d735e70 100755
--- a/prosody
+++ b/prosody
@@ -115,7 +115,7 @@ end);
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 });