diff options
author | Kim Alvefur <zash@zash.se> | 2016-06-12 20:06:30 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-06-12 20:06:30 +0200 |
commit | ad4206686a546cb2a7423a4ab62c5d3c9a1ea199 (patch) | |
tree | 5235f98e4c6c1576bf426af7bafd6cc45c32a411 /prosodyctl | |
parent | 8db3c0f7ee60372ae79c3bcd2d062f1b756f09e6 (diff) | |
parent | 41fc70c7cfc60fc8060b8e64ea5706ae1e5de6b8 (diff) | |
download | prosody-ad4206686a546cb2a7423a4ab62c5d3c9a1ea199.tar.gz prosody-ad4206686a546cb2a7423a4ab62c5d3c9a1ea199.zip |
Merge 0.10->trunk
Diffstat (limited to 'prosodyctl')
-rwxr-xr-x | prosodyctl | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -974,9 +974,10 @@ function commands.check(arg) print(" For more information see https://prosody.im/doc/storage"); end end + local require_encryption = set.intersection(all_options, set.new({"require_encryption", "c2s_require_encryption", "s2s_require_encryption"})):empty(); local ssl = dependencies.softreq"ssl"; if not ssl then - if not set.intersection(all_options, set.new({"require_encryption", "c2s_require_encryption", "s2s_require_encryption"})):empty() then + if not require_encryption then print(""); print(" You require encryption but LuaSec is not available."); print(" Connections will fail."); @@ -1006,6 +1007,11 @@ function commands.check(arg) ok = false; end end + elseif require_encryption and not all_modules:contains("tls") then + print(""); + print(" You require encryption but mod_tls is not enabled."); + print(" Connections will fail."); + ok = false; end print("Done.\n"); |