aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2013-05-17 14:55:05 +0100
committerMatthew Wild <mwild1@gmail.com>2013-05-17 14:55:05 +0100
commit0f010d14552c9ae4c3a8cfe17f913cb0b745d927 (patch)
treea5582d8d2126133b4a2bfac7b04409a50e1b0b1a
parent0fa89e6a22c699d1bb3133e8cc998fa981d1daf6 (diff)
downloadprosody-0f010d14552c9ae4c3a8cfe17f913cb0b745d927.tar.gz
prosody-0f010d14552c9ae4c3a8cfe17f913cb0b745d927.zip
prosodyctl: check dns: Correctly mark host as failed if expected SRV records are not found
-rwxr-xr-xprosodyctl2
1 files changed, 2 insertions, 0 deletions
diff --git a/prosodyctl b/prosodyctl
index d3ba8932..11c6296b 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -879,6 +879,7 @@ function commands.check(arg)
else
if c2s_srv_required then
print(" No _xmpp-client SRV record found for "..host..", but it looks like you need one.");
+ all_targst_ok = false;
else
target_hosts:add(host);
end
@@ -895,6 +896,7 @@ function commands.check(arg)
else
if s2s_srv_required then
print(" No _xmpp-server SRV record found for "..host..", but it looks like you need one.");
+ all_targets_ok = false;
else
target_hosts:add(host);
end