Diff

util/prosodyctl/check.lua @ 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
parent 11940:2d82e4245aa3
child 12099:b344edad61d3
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()