From 5c90cc5f91d7e76d51182ef73251043c58f13425 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Tue, 25 Nov 2008 03:52:53 +0000 Subject: Refuse to run without SSL/TLS unless run_without_ssl is set in config --- util/dependencies.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3