prosody

changeset 2429
5cfa1400e247
parent 2428
3ba9db4b9311
child 2494
6a60d67b4bb8
equal deleted inserted replaced
2428:3ba9db4b9311 2429:5cfa1400e247
200 200
201 if type(ports) ~= "table" then 201 if type(ports) ~= "table" then
202 log("error", "core."..ports_option.." is not a table"); 202 log("error", "core."..ports_option.." is not a table");
203 else 203 else
204 for _, port in ipairs(ports) do 204 for _, port in ipairs(ports) do
205 port = tonumber(port);
205 if type(port) ~= "number" then 206 if type(port) ~= "number" then
206 log("error", "Non-numeric "..ports_option..": "..tostring(port)); 207 log("error", "Non-numeric "..ports_option..": "..tostring(port));
207 else 208 else
208 cl.start(listener, { 209 cl.start(listener, {
209 ssl = conntype ~= "tcp" and global_ssl_ctx, 210 ssl = conntype ~= "tcp" and global_ssl_ctx,

mercurial