mod_c2s: Rename Direct TLS listener 'c2s_direct_tls' for clarity

And to follow existing naming practices better than 'legacy_ssl' did.
This commit is contained in:
Kim Alvefur 2021-09-09 22:14:43 +02:00
parent 4f520714ce
commit f24aba7b19
3 changed files with 3 additions and 3 deletions

View file

@ -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>

View file

@ -442,7 +442,7 @@ module:provides("net", {
});
module:provides("net", {
name = "direct_tls";
name = "c2s_direct_tls";
listener = listener;
encryption = "ssl";
multiplex = {

View file

@ -311,7 +311,7 @@ local function check(arg)
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;