aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-06-23 17:28:24 +0200
committerKim Alvefur <zash@zash.se>2018-06-23 17:28:24 +0200
commit420d2eac44bdc25b61db77d7755c0d8159ea4614 (patch)
treeff2d285d417c3eb8e2c8ffdc6f08334a82f6934b
parent4595a56988237cac482c840b372922e476a70b04 (diff)
downloadprosody-420d2eac44bdc25b61db77d7755c0d8159ea4614.tar.gz
prosody-420d2eac44bdc25b61db77d7755c0d8159ea4614.zip
prosodyctl: Restrict c2s checks for when c2s is enabled
-rwxr-xr-xprosodyctl2
1 files changed, 1 insertions, 1 deletions
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