prosody

changeset 2789
2419ca0bfab3
parent 2778
d591e2c90807
child 2797
76777fee99b7
equal deleted inserted replaced
2788:fb47ac5ed04c 2789:2419ca0bfab3
190 190
191 if type(ports) ~= "table" then 191 if type(ports) ~= "table" then
192 log("error", "core."..option.." is not a table"); 192 log("error", "core."..option.." is not a table");
193 else 193 else
194 for _, port in ipairs(ports) do 194 for _, port in ipairs(ports) do
195 port = tonumber(port);
195 if type(port) ~= "number" then 196 if type(port) ~= "number" then
196 log("error", "Non-numeric "..option.."_ports: "..tostring(port)); 197 log("error", "Non-numeric "..option.."_ports: "..tostring(port));
197 else 198 else
198 cl.start(listener, { 199 cl.start(listener, {
199 ssl = conntype ~= "tcp" and global_ssl_ctx, 200 ssl = conntype ~= "tcp" and global_ssl_ctx,

mercurial