X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=prosodyctl;h=4d7f678fa2e767b05381657f719f09156e8e0904;hb=cfb395080041af25a2bb7beda67adfcca7ad2d6f;hp=5441b2b3ad2261e482228b3c58d1910ad2786467;hpb=2a8baa7b450927a845b54f69a13b6ff61040cd05;p=prosody.git diff --git a/prosodyctl b/prosodyctl index 5441b2b3..4d7f678f 100755 --- a/prosodyctl +++ b/prosodyctl @@ -821,7 +821,7 @@ function commands.check(arg) print(" You need to move the following option"..(n>1 and "s" or "")..": "..table.concat(it.to_array(misplaced_options), ", ")); end local subdomain = host:match("^[^.]+"); - if not(is_component) and (subdomain == "jabber" or subdomain == "xmpp" + if not(host_options:contains("component_module")) and (subdomain == "jabber" or subdomain == "xmpp" or subdomain == "chat" or subdomain == "im") then print(""); print(" Suggestion: If "..host.. " is a new host with no real users yet, consider renaming it now to"); @@ -933,6 +933,25 @@ function commands.check(arg) target_hosts:remove("localhost"); end + local modules = set.new(it.to_array(it.values(host_options.modules_enabled))) + + set.new(it.to_array(it.values(config.get("*", "modules_enabled")))) + + set.new({ config.get(host, "component_module") }); + + if modules:contains("proxy65") then + local proxy65_target = config.get(host, "proxy65_address") or host; + local A, AAAA = dns.lookup(proxy65_target, "A"), dns.lookup(proxy65_target, "AAAA"); + local prob = {}; + if not A then + table.insert(prob, "A"); + end + if v6_supported and not AAAA then + table.insert(prob, "AAAA"); + end + if #prob > 0 then + print(" File transfer proxy "..proxy65_target.." has no "..table.concat(prob, "/").." record. Create one or set 'proxy65_address' to the correct host/IP."); + end + end + for host in target_hosts do local host_ok_v4, host_ok_v6; local res = dns.lookup(host, "A");