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, |