Comparison

util/prosodyctl/check.lua @ 11778:f254fd16218a

mod_c2s: Rename Direct TLS listener 'c2s_direct_tls' for clarity And to follow existing naming practices better than 'legacy_ssl' did.
author Kim Alvefur <zash@zash.se>
date Thu, 09 Sep 2021 22:14:43 +0200
parent 11777:08de090e05e9
child 11779:f4f0bdaeabd2
comparison
equal deleted inserted replaced
11777:08de090e05e9 11778:f254fd16218a
309 end) 309 end)
310 local idna = require "util.encodings".idna; 310 local idna = require "util.encodings".idna;
311 local ip = require "util.ip"; 311 local ip = require "util.ip";
312 local c2s_ports = set.new(configmanager.get("*", "c2s_ports") or {5222}); 312 local c2s_ports = set.new(configmanager.get("*", "c2s_ports") or {5222});
313 local s2s_ports = set.new(configmanager.get("*", "s2s_ports") or {5269}); 313 local s2s_ports = set.new(configmanager.get("*", "s2s_ports") or {5269});
314 local c2s_tls_ports = set.new(configmanager.get("*", "direct_tls_ports") or {}); 314 local c2s_tls_ports = set.new(configmanager.get("*", "c2s_direct_tls_ports") or {});
315 local s2s_tls_ports = set.new(configmanager.get("*", "s2s_direct_tls_ports") or {}); 315 local s2s_tls_ports = set.new(configmanager.get("*", "s2s_direct_tls_ports") or {});
316 316
317 local c2s_srv_required, s2s_srv_required, c2s_tls_srv_required, s2s_tls_srv_required; 317 local c2s_srv_required, s2s_srv_required, c2s_tls_srv_required, s2s_tls_srv_required;
318 if not c2s_ports:contains(5222) then 318 if not c2s_ports:contains(5222) then
319 c2s_srv_required = true; 319 c2s_srv_required = true;