aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-11-28 22:51:50 +0100
committerKim Alvefur <zash@zash.se>2021-11-28 22:51:50 +0100
commit0a4923938af22ac8c0913e93912f0029395dfe12 (patch)
tree27d5f0103e49f11f07c96a612e45847c4ea864ad /util
parent7e5d67ab1aa04b390c91756e6900046a0b32b58b (diff)
downloadprosody-0a4923938af22ac8c0913e93912f0029395dfe12.tar.gz
prosody-0a4923938af22ac8c0913e93912f0029395dfe12.zip
util.prosodyctl.check: Support direct TLS connectivity checks
Currently only supported with OJN Assumption: the direct_tls_ports are not empty when set.
Diffstat (limited to 'util')
-rw-r--r--util/prosodyctl/check.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/util/prosodyctl/check.lua b/util/prosodyctl/check.lua
index 742980c9..2c102ec2 100644
--- a/util/prosodyctl/check.lua
+++ b/util/prosodyctl/check.lua
@@ -838,10 +838,16 @@ local function check(arg)
if modules:contains("c2s") then
check_connectivity("xmpp-client")
+ if configmanager.get("*", "c2s_direct_tls_ports") then
+ check_connectivity("xmpps-client");
+ end
end
if modules:contains("s2s") then
check_connectivity("xmpp-server")
+ if configmanager.get("*", "s2s_direct_tls_ports") then
+ check_connectivity("xmpps-server");
+ end
end
print()