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