Software /
code /
prosody
Comparison
prosodyctl @ 6844:8946052e12d2
prosodyctl check: Warn if encryption is required but LuaSec is unavailable
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 24 Sep 2015 20:02:00 +0200 |
parent | 6837:13b44929ae49 |
child | 6845:bb7854355df1 |
comparison
equal
deleted
inserted
replaced
6842:eed846384178 | 6844:8946052e12d2 |
---|---|
909 or subdomain == "chat" or subdomain == "im") then | 909 or subdomain == "chat" or subdomain == "im") then |
910 print(""); | 910 print(""); |
911 print(" Suggestion: If "..host.. " is a new host with no real users yet, consider renaming it now to"); | 911 print(" Suggestion: If "..host.. " is a new host with no real users yet, consider renaming it now to"); |
912 print(" "..host:gsub("^[^.]+%.", "")..". You can use SRV records to redirect XMPP clients and servers to "..host.."."); | 912 print(" "..host:gsub("^[^.]+%.", "")..". You can use SRV records to redirect XMPP clients and servers to "..host.."."); |
913 print(" For more information see: http://prosody.im/doc/dns"); | 913 print(" For more information see: http://prosody.im/doc/dns"); |
914 end | |
915 end | |
916 local all_options = set.new(); | |
917 for host in enabled_hosts() do | |
918 all_options:include(set.new(it.to_array(it.keys(config[host])))); | |
919 end | |
920 local ssl = nil, dependencies.softreq"ssl"; | |
921 if not ssl then | |
922 if not set.intersection(all_options, set.new({"require_encryption", "c2s_require_encryption", "s2s_require_encryption"})):empty() then | |
923 print(""); | |
924 print(" You require encryption but LuaSec is not available."); | |
925 print(" Connections will fail."); | |
926 ok = false; | |
914 end | 927 end |
915 end | 928 end |
916 | 929 |
917 print("Done.\n"); | 930 print("Done.\n"); |
918 end | 931 end |