util/prosodyctl/check.lua
changeset 11961 3a7ce7df7806
parent 11944 2d82e4245aa3
child 12103 b344edad61d3
equal deleted inserted replaced
11960:340d8619e27e 11961:3a7ce7df7806
   836 				end
   836 				end
   837 			end
   837 			end
   838 
   838 
   839 			if modules:contains("c2s") then
   839 			if modules:contains("c2s") then
   840 				check_connectivity("xmpp-client")
   840 				check_connectivity("xmpp-client")
       
   841 				if configmanager.get("*", "c2s_direct_tls_ports") then
       
   842 					check_connectivity("xmpps-client");
       
   843 				end
   841 			end
   844 			end
   842 
   845 
   843 			if modules:contains("s2s") then
   846 			if modules:contains("s2s") then
   844 				check_connectivity("xmpp-server")
   847 				check_connectivity("xmpp-server")
       
   848 				if configmanager.get("*", "s2s_direct_tls_ports") then
       
   849 					check_connectivity("xmpps-server");
       
   850 				end
   845 			end
   851 			end
   846 
   852 
   847 			print()
   853 			print()
   848 		end
   854 		end
   849 		print("Note: The connectivity check only checks the reachability of the domain.")
   855 		print("Note: The connectivity check only checks the reachability of the domain.")