mod_c2s: Rename Direct TLS listener 'c2s_direct_tls' for clarity
authorKim Alvefur <zash@zash.se>
Thu, 09 Sep 2021 22:14:43 +0200
changeset 11782 f254fd16218a
parent 11781 08de090e05e9
child 11783 f4f0bdaeabd2
mod_c2s: Rename Direct TLS listener 'c2s_direct_tls' for clarity And to follow existing naming practices better than 'legacy_ssl' did.
doc/doap.xml
plugins/mod_c2s.lua
util/prosodyctl/check.lua
--- a/doc/doap.xml	Thu Sep 09 22:10:12 2021 +0200
+++ b/doc/doap.xml	Thu Sep 09 22:14:43 2021 +0200
@@ -641,7 +641,7 @@
         <xmpp:version>1.1.0</xmpp:version>
         <xmpp:status>partial</xmpp:status>
         <xmpp:since>0.2.0</xmpp:since>
-        <xmpp:note>direct_tls_ports (formerly legacy_ssl_ports) for c2s and direct_tls_s2s_ports for s2s</xmpp:note>
+        <xmpp:note>c2s_direct_tls_ports (formerly legacy_ssl_ports) for c2s and direct_tls_s2s_ports for s2s</xmpp:note>
       </xmpp:SupportedXep>
     </implements>
     <implements>
--- a/plugins/mod_c2s.lua	Thu Sep 09 22:10:12 2021 +0200
+++ b/plugins/mod_c2s.lua	Thu Sep 09 22:14:43 2021 +0200
@@ -442,7 +442,7 @@
 });
 
 module:provides("net", {
-	name = "direct_tls";
+	name = "c2s_direct_tls";
 	listener = listener;
 	encryption = "ssl";
 	multiplex = {
--- a/util/prosodyctl/check.lua	Thu Sep 09 22:10:12 2021 +0200
+++ b/util/prosodyctl/check.lua	Thu Sep 09 22:14:43 2021 +0200
@@ -311,7 +311,7 @@
 		local ip = require "util.ip";
 		local c2s_ports = set.new(configmanager.get("*", "c2s_ports") or {5222});
 		local s2s_ports = set.new(configmanager.get("*", "s2s_ports") or {5269});
-		local c2s_tls_ports = set.new(configmanager.get("*", "direct_tls_ports") or {});
+		local c2s_tls_ports = set.new(configmanager.get("*", "c2s_direct_tls_ports") or {});
 		local s2s_tls_ports = set.new(configmanager.get("*", "s2s_direct_tls_ports") or {});
 
 		local c2s_srv_required, s2s_srv_required, c2s_tls_srv_required, s2s_tls_srv_required;