Changeset

5589:8745193e651e

prosodyctl: check dns: Correctly mark host as failed if expected SRV records are not found
author Matthew Wild <mwild1@gmail.com>
date Fri, 17 May 2013 14:55:05 +0100
parents 5588:8c1a3243d16f
children 5590:597450c73ce6
files prosodyctl
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/prosodyctl	Fri May 17 14:53:51 2013 +0100
+++ b/prosodyctl	Fri May 17 14:55:05 2013 +0100
@@ -879,6 +879,7 @@
 				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 @@
 			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