projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1cdea38
)
prosodyctl: Only use host part of JIDs eg components that have node parts (thanks...
author
Kim Alvefur
<zash@zash.se>
Tue, 22 Mar 2016 13:42:55 +0000
(14:42 +0100)
committer
Kim Alvefur
<zash@zash.se>
Tue, 22 Mar 2016 13:42:55 +0000
(14:42 +0100)
prosodyctl
patch
|
blob
|
history
diff --git
a/prosodyctl
b/prosodyctl
index 7c8659fb09d3aacb511adf8ec0d5ac3d455492f2..c8366faf9ae68193ccc98767f8ea68fd62a4f047 100755
(executable)
--- a/
prosodyctl
+++ b/
prosodyctl
@@
-1063,11
+1063,15
@@
function commands.check(arg)
local v6_supported = not not socket.tcp6;
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 all_targets_ok, some_targets_ok = true, false;
+ local node, host = jid_split(jid);
local is_component = not not host_options.component_module;
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");
local target_hosts = set.new();
if not is_component then
local res = dns.lookup("_xmpp-client._tcp."..idna.to_ascii(host)..".", "SRV");