diff options
author | Matthew Wild <mwild1@gmail.com> | 2016-03-23 12:19:23 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2016-03-23 12:19:23 +0000 |
commit | 6ba752537d94d555b84862d99fe57d883d94f724 (patch) | |
tree | 19bbee1ddaa22369aec0f6558391969263a27aa2 /prosodyctl | |
parent | 576a049e5671ace54176515868e495dfbc5482d3 (diff) | |
parent | 8005cf6813739ada38ad073f7a768d1667bdb8c5 (diff) | |
download | prosody-6ba752537d94d555b84862d99fe57d883d94f724.tar.gz prosody-6ba752537d94d555b84862d99fe57d883d94f724.zip |
Merge 0.10->trunk
Diffstat (limited to 'prosodyctl')
-rwxr-xr-x | prosodyctl | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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"); |