diff options
author | Kim Alvefur <zash@zash.se> | 2021-11-28 22:51:50 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-11-28 22:51:50 +0100 |
commit | 0a4923938af22ac8c0913e93912f0029395dfe12 (patch) | |
tree | 27d5f0103e49f11f07c96a612e45847c4ea864ad /util/prosodyctl | |
parent | 7e5d67ab1aa04b390c91756e6900046a0b32b58b (diff) | |
download | prosody-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/prosodyctl')
-rw-r--r-- | util/prosodyctl/check.lua | 6 |
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() |