diff options
author | Kim Alvefur <zash@zash.se> | 2018-06-23 17:28:24 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-06-23 17:28:24 +0200 |
commit | 087fbda1f706229ac909566cbf232d02d6f9fd3a (patch) | |
tree | ff2d285d417c3eb8e2c8ffdc6f08334a82f6934b /prosodyctl | |
parent | d5e1b3905642acaf4d4ba405f088f1e23c1f6cde (diff) | |
download | prosody-087fbda1f706229ac909566cbf232d02d6f9fd3a.tar.gz prosody-087fbda1f706229ac909566cbf232d02d6f9fd3a.zip |
prosodyctl: Restrict c2s checks for when c2s is enabled
Diffstat (limited to 'prosodyctl')
-rwxr-xr-x | prosodyctl | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |