# HG changeset patch # User Kim Alvefur # Date 1638136310 -3600 # Node ID 3a7ce7df7806c74d3ad8e89c3df66b5412da11ce # Parent 340d8619e27e5b01a83e6a8d33e741dfb70a719e util.prosodyctl.check: Support direct TLS connectivity checks Currently only supported with OJN Assumption: the direct_tls_ports are not empty when set. diff -r 340d8619e27e -r 3a7ce7df7806 util/prosodyctl/check.lua --- a/util/prosodyctl/check.lua Sun Nov 28 21:55:53 2021 +0100 +++ b/util/prosodyctl/check.lua Sun Nov 28 22:51:50 2021 +0100 @@ -838,10 +838,16 @@ 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()