196 log("error", "Non-numeric "..option.."_ports: "..tostring(port)); |
196 log("error", "Non-numeric "..option.."_ports: "..tostring(port)); |
197 else |
197 else |
198 cl.start(listener, { |
198 cl.start(listener, { |
199 ssl = conntype ~= "tcp" and global_ssl_ctx, |
199 ssl = conntype ~= "tcp" and global_ssl_ctx, |
200 port = port, |
200 port = port, |
201 interface = config.get("*", "core", option.."_interface") |
201 interface = (option and config.get("*", "core", option.."_interface")) |
202 or cl.get(listener).default_interface |
202 or cl.get(listener).default_interface |
203 or config.get("*", "core", "interface"), |
203 or config.get("*", "core", "interface"), |
204 type = conntype |
204 type = conntype |
205 }); |
205 }); |
206 end |
206 end |
207 end |
207 end |