aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-12-10 01:56:16 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-12-10 01:56:16 +0500
commit9d431743f91a605ce3aabf17e8d3b2131a3d045c (patch)
tree738ff906ed87af347d88595dd50ac4879a4dd35d
parent9a2197135421deb940e6581dc953b759894c989c (diff)
downloadprosody-9d431743f91a605ce3aabf17e8d3b2131a3d045c.tar.gz
prosody-9d431743f91a605ce3aabf17e8d3b2131a3d045c.zip
Mainfile: Broke up a really long line.
-rwxr-xr-xprosody9
1 files changed, 6 insertions, 3 deletions
diff --git a/prosody b/prosody
index 90ac3adb..06391df4 100755
--- a/prosody
+++ b/prosody
@@ -185,7 +185,7 @@ function init_global_state()
-- Load SSL settings from config, and create a ctx table
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", options = "no_sslv2"; };
+ local default_ssl_ctx = { mode = "server", protocol = "sslv23", capath = "/etc/ssl/certs", verify = "none", options = "no_sslv2" };
setmetatable(global_ssl_ctx, { __index = default_ssl_ctx });
prosody.global_ssl_ctx = global_ssl_ctx;
end
@@ -294,8 +294,11 @@ function prepare_to_start()
end
function init_global_protection()
- -- Catch global accesses --
- local locked_globals_mt = { __index = function (t, k) error("Attempt to read a non-existent global '"..k.."'", 2); end, __newindex = function (t, k, v) error("Attempt to set a global: "..tostring(k).." = "..tostring(v), 2); end }
+ -- Catch global accesses
+ local locked_globals_mt = {
+ __index = function (t, k) error("Attempt to read a non-existent global '"..k.."'", 2); end;
+ __newindex = function (t, k, v) error("Attempt to set a global: "..tostring(k).." = "..tostring(v), 2); end;
+ };
function prosody.unlock_globals()
setmetatable(_G, nil);