Software / code / prosody
Comparison
util/dependencies.lua @ 413:4b61529d0884
Refuse to run without SSL/TLS unless run_without_ssl is set in config
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Tue, 25 Nov 2008 03:52:53 +0000 |
| parent | 410:5ce6801ad2e4 |
| child | 449:c0a4a1e63d70 |
comparison
equal
deleted
inserted
replaced
| 412:b5b4ec28feec | 413:4b61529d0884 |
|---|---|
| 33 end | 33 end |
| 34 | 34 |
| 35 local ssl = softreq "ssl" | 35 local ssl = softreq "ssl" |
| 36 | 36 |
| 37 if not ssl then | 37 if not ssl then |
| 38 missingdep("LuaSec", { ["Source"] = "http://www.inf.puc-rio.br/~brunoos/luasec/" }, "SSL/TLS support will not be available"); | 38 if config.get("*", "core", "run_without_ssl") then |
| 39 log("warn", "Running without SSL support because run_without_ssl is defined in the config"); | |
| 40 else | |
| 41 missingdep("LuaSec", { ["Source"] = "http://www.inf.puc-rio.br/~brunoos/luasec/" }, "SSL/TLS support will not be available"); | |
| 42 end | |
| 39 end | 43 end |
| 40 | 44 |
| 41 | 45 |
| 42 local md5 = softreq "md5"; | 46 local md5 = softreq "md5"; |
| 43 | 47 |