Refuse to run without SSL/TLS unless run_without_ssl is set in config

Tue, 25 Nov 2008 03:52:53 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Tue, 25 Nov 2008 03:52:53 +0000
changeset 413
4b61529d0884
parent 412
b5b4ec28feec
child 414
405d414fbce2

Refuse to run without SSL/TLS unless run_without_ssl is set in config

util/dependencies.lua file | annotate | diff | comparison | revisions
--- a/util/dependencies.lua	Tue Nov 25 03:50:08 2008 +0000
+++ b/util/dependencies.lua	Tue Nov 25 03:52:53 2008 +0000
@@ -35,7 +35,11 @@
 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
 
 

mercurial