Software /
code /
prosody
Changeset
11957:3a7ce7df7806
util.prosodyctl.check: Support direct TLS connectivity checks
Currently only supported with OJN
Assumption: the direct_tls_ports are not empty when set.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 28 Nov 2021 22:51:50 +0100 |
parents | 11956:340d8619e27e |
children | 11958:31f83a645ce6 |
files | util/prosodyctl/check.lua |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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()