comparison mod_dnsupdate/mod_dnsupdate.lua @ 6223:3ae0d518b739

mod_dnsupdate: Check if multiplexing is enabled Replaces undocumented option
author Kim Alvefur <zash@zash.se>
date Mon, 12 May 2025 12:39:59 +0200
parents 62adec551585
children 0703ef9f8db8
comparison
equal deleted inserted replaced
6222:62adec551585 6223:3ae0d518b739
90 if not modules_enabled:contains("s2s") then 90 if not modules_enabled:contains("s2s") then
91 configured_ports["xmpp-server"] = {}; 91 configured_ports["xmpp-server"] = {};
92 configured_ports["xmpps-server"] = {}; 92 configured_ports["xmpps-server"] = {};
93 end 93 end
94 94
95 if opts.multiplex then 95 if modules_enabled:contains("net_multiplex") then
96 for opt, ports in pairs(configured_ports) do 96 for opt, ports in pairs(configured_ports) do
97 ports:append(module:get_option_array(opt:sub(1, 5) == "xmpps" and "ssl_ports" or "ports", {})); 97 ports:append(module:get_option_array(opt:sub(1, 5) == "xmpps" and "ssl_ports" or "ports", {}));
98 end 98 end
99 end 99 end
100 100