diff options
author | Kim Alvefur <zash@zash.se> | 2022-01-30 13:16:30 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2022-01-30 13:16:30 +0100 |
commit | 8ebfaefcbbe3b068e4a3ebce82489a828760a4cf (patch) | |
tree | 8cc83a51f6351c1e5275a5e0ae8ae0e0ddb91be6 /util | |
parent | 8fbf286e64fd79b711e87b293e8aff1f5c39df4d (diff) | |
download | prosody-8ebfaefcbbe3b068e4a3ebce82489a828760a4cf.tar.gz prosody-8ebfaefcbbe3b068e4a3ebce82489a828760a4cf.zip |
util.prosodyctl.check: Include multiplexed ports in DNS checks #1704
Diffstat (limited to 'util')
-rw-r--r-- | util/prosodyctl/check.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/util/prosodyctl/check.lua b/util/prosodyctl/check.lua index ef72f440..aa56bc48 100644 --- a/util/prosodyctl/check.lua +++ b/util/prosodyctl/check.lua @@ -422,6 +422,19 @@ local function check(arg) 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 {}); + if set.new(configmanager.get("*", "modules_enabled")):contains("net_multiplex") then + local multiplex_ports = set.new(configmanager.get("*", "ports") or {}); + local multiplex_tls_ports = set.new(configmanager.get("*", "ssl_ports") or {}); + if not multiplex_ports:empty() then + c2s_ports = c2s_ports + multiplex_ports; + s2s_ports = s2s_ports + multiplex_ports; + end + if not multiplex_tls_ports:empty() then + c2s_tls_ports = c2s_tls_ports + multiplex_tls_ports; + s2s_tls_ports = s2s_tls_ports + multiplex_tls_ports; + end + end + local c2s_srv_required, s2s_srv_required, c2s_tls_srv_required, s2s_tls_srv_required; if not c2s_ports:contains(5222) then c2s_srv_required = true; |