From 7b172f256be7f012a1b6ef2527282265b413f003 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Tue, 20 Oct 2009 13:25:29 +0100 Subject: prosody: Use rawget to test for the existence of ssl (LuaSec) so we don't look for a nil global --- prosody | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'prosody') diff --git a/prosody b/prosody index dc28c771..2c0c5784 100755 --- a/prosody +++ b/prosody @@ -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 }); -- cgit v1.2.3