prosodyctl
changeset 8927 8fe98e365ab8
parent 8926 ddd98e262519
child 8951 3be8799263f3
--- 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