Refuse to run without SSL/TLS unless run_without_ssl is set in config
authorMatthew Wild <mwild1@gmail.com>
Tue, 25 Nov 2008 03:52:53 +0000 (03:52 +0000)
committerMatthew Wild <mwild1@gmail.com>
Tue, 25 Nov 2008 03:52:53 +0000 (03:52 +0000)
util/dependencies.lua

index c597f98a75b599fde56c7f8f72711ac9b7c39d6c..3213a356976110513f6c1695dab9f1a2bdf8a16e 100644 (file)
@@ -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