diff options
author | Kim Alvefur <zash@zash.se> | 2016-03-22 14:42:55 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-03-22 14:42:55 +0100 |
commit | f88b44d69994d5dae4b8e37a6e6799bbb1c19571 (patch) | |
tree | 31848f6f8f87373938dcc1bb3680715afaefee48 /prosodyctl | |
parent | 6873a62f1eb02e211a579cc1e1aa52e37931dba3 (diff) | |
download | prosody-f88b44d69994d5dae4b8e37a6e6799bbb1c19571.tar.gz prosody-f88b44d69994d5dae4b8e37a6e6799bbb1c19571.zip |
prosodyctl: Only use host part of JIDs eg components that have node parts (thanks suzyo)
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"); |