diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-10-20 13:25:29 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-10-20 13:25:29 +0100 |
commit | 7b172f256be7f012a1b6ef2527282265b413f003 (patch) | |
tree | d2e2dbf97736044bdf5444e8b4ae8cccaded9983 | |
parent | 600e5878bb74fa0fbc67e355214884c89bfdf671 (diff) | |
download | prosody-7b172f256be7f012a1b6ef2527282265b413f003.tar.gz prosody-7b172f256be7f012a1b6ef2527282265b413f003.zip |
prosody: Use rawget to test for the existence of ssl (LuaSec) so we don't look for a nil global
-rwxr-xr-x | prosody | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -202,7 +202,7 @@ function prepare_to_start() prosody.events.fire_event("server-starting"); -- Load SSL settings from config, and create a ctx table - local global_ssl_ctx = ssl and config.get("*", "core", "ssl"); + local global_ssl_ctx = rawget(_G, "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 }); |