From 0a4923938af22ac8c0913e93912f0029395dfe12 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 28 Nov 2021 22:51:50 +0100 Subject: util.prosodyctl.check: Support direct TLS connectivity checks Currently only supported with OJN Assumption: the direct_tls_ports are not empty when set. --- util/prosodyctl/check.lua | 6 ++++++ 1 file changed, 6 insertions(+) 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() -- cgit v1.2.3