aboutsummaryrefslogtreecommitdiffstats
path: root/prosodyctl
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2016-03-23 12:19:23 +0000
committerMatthew Wild <mwild1@gmail.com>2016-03-23 12:19:23 +0000
commit5aed00374715e5ca0149888dcd0df88291015809 (patch)
tree19bbee1ddaa22369aec0f6558391969263a27aa2 /prosodyctl
parent977314dc5ab03c9fb03ad59932b674a25f71ccff (diff)
parentc50a32df40853786330503ea52ffea6c040a212b (diff)
downloadprosody-5aed00374715e5ca0149888dcd0df88291015809.tar.gz
prosody-5aed00374715e5ca0149888dcd0df88291015809.zip
Merge 0.10->trunk
Diffstat (limited to 'prosodyctl')
-rwxr-xr-xprosodyctl8
1 files changed, 6 insertions, 2 deletions
diff --git a/prosodyctl b/prosodyctl
index 92606dd2..1fff7eed 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -1063,11 +1063,15 @@ function commands.check(arg)
local v6_supported = not not socket.tcp6;
- for host, host_options in enabled_hosts() do
+ for jid, host_options in enabled_hosts() do
local all_targets_ok, some_targets_ok = true, false;
+ local node, host = jid_split(jid);
local is_component = not not host_options.component_module;
- print("Checking DNS for "..(is_component and "component" or "host").." "..host.."...");
+ print("Checking DNS for "..(is_component and "component" or "host").." "..jid.."...");
+ if node then
+ print("Only the domain part ("..host..") is used in DNS.")
+ end
local target_hosts = set.new();
if not is_component then
local res = dns.lookup("_xmpp-client._tcp."..idna.to_ascii(host)..".", "SRV");