X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=prosodyctl;h=15d40f26a7b66e16bb88010b6587be5d6f8b01a9;hb=455af00e41f1766abea5475e1be44f17a57e0879;hp=4a6ce44efd68acfe4b33fea8250e119cc9eb97cb;hpb=dc22aa98c54b035664e79e96f27ddda07209e7ee;p=prosody.git diff --git a/prosodyctl b/prosodyctl index 4a6ce44e..15d40f26 100755 --- a/prosodyctl +++ b/prosodyctl @@ -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");