Diff

prosodyctl @ 8924:8fe98e365ab8

prosodyctl: Restrict c2s checks for when c2s is enabled
author Kim Alvefur <zash@zash.se>
date Sat, 23 Jun 2018 17:28:24 +0200
parent 8923:ddd98e262519
child 8948:3be8799263f3
line wrap: on
line diff
--- a/prosodyctl	Sat Jun 23 16:15:36 2018 +0200
+++ b/prosodyctl	Sat Jun 23 17:28:24 2018 +0200
@@ -1039,7 +1039,7 @@
 				print("Only the domain part ("..host..") is used in DNS.")
 			end
 			local target_hosts = set.new();
-			if not is_component then
+			if modules:contains("c2s") then
 				local res = dns.lookup("_xmpp-client._tcp."..idna.to_ascii(host)..".", "SRV");
 				if res then
 					for _, record in ipairs(res) do