From 087fbda1f706229ac909566cbf232d02d6f9fd3a Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 23 Jun 2018 17:28:24 +0200 Subject: prosodyctl: Restrict c2s checks for when c2s is enabled --- prosodyctl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'prosodyctl') diff --git a/prosodyctl b/prosodyctl index 436ec756..70d6f386 100755 --- a/prosodyctl +++ b/prosodyctl @@ -1039,7 +1039,7 @@ function commands.check(arg) 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 -- cgit v1.2.3