Comparison

prosodyctl @ 6958:ebac87d80ef4

prosodyctl check: Really store imported LuaSec (must be a leftover from debugging)
author Kim Alvefur <zash@zash.se>
date Thu, 03 Dec 2015 16:06:09 +0100
parent 6957:e442016918a9
child 6959:aa8647a5105d
comparison
equal deleted inserted replaced
6957:e442016918a9 6958:ebac87d80ef4
915 end 915 end
916 local all_options = set.new(it.to_array(it.keys(config["*"]))); 916 local all_options = set.new(it.to_array(it.keys(config["*"])));
917 for host in enabled_hosts() do 917 for host in enabled_hosts() do
918 all_options:include(set.new(it.to_array(it.keys(config[host])))); 918 all_options:include(set.new(it.to_array(it.keys(config[host]))));
919 end 919 end
920 local ssl = nil, dependencies.softreq"ssl"; 920 local ssl = dependencies.softreq"ssl";
921 if not ssl then 921 if not ssl then
922 if not set.intersection(all_options, set.new({"require_encryption", "c2s_require_encryption", "s2s_require_encryption"})):empty() then 922 if not set.intersection(all_options, set.new({"require_encryption", "c2s_require_encryption", "s2s_require_encryption"})):empty() then
923 print(""); 923 print("");
924 print(" You require encryption but LuaSec is not available."); 924 print(" You require encryption but LuaSec is not available.");
925 print(" Connections will fail."); 925 print(" Connections will fail.");