aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-11-25 03:52:53 +0000
committerMatthew Wild <mwild1@gmail.com>2008-11-25 03:52:53 +0000
commit5c90cc5f91d7e76d51182ef73251043c58f13425 (patch)
tree1eb2df46413a3bc29a545a2f6d92efc2b71224a3
parentf86f6bc13d458728763b29148750098d9f8846cd (diff)
downloadprosody-5c90cc5f91d7e76d51182ef73251043c58f13425.tar.gz
prosody-5c90cc5f91d7e76d51182ef73251043c58f13425.zip
Refuse to run without SSL/TLS unless run_without_ssl is set in config
-rw-r--r--util/dependencies.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/util/dependencies.lua b/util/dependencies.lua
index c597f98a..3213a356 100644
--- a/util/dependencies.lua
+++ b/util/dependencies.lua
@@ -35,7 +35,11 @@ end
local ssl = softreq "ssl"
if not ssl then
- missingdep("LuaSec", { ["Source"] = "http://www.inf.puc-rio.br/~brunoos/luasec/" }, "SSL/TLS support will not be available");
+ if config.get("*", "core", "run_without_ssl") then
+ log("warn", "Running without SSL support because run_without_ssl is defined in the config");
+ else
+ missingdep("LuaSec", { ["Source"] = "http://www.inf.puc-rio.br/~brunoos/luasec/" }, "SSL/TLS support will not be available");
+ end
end