prosody

changeset 2778
d591e2c90807
parent 2769
826f6fb7036d
child 2789
2419ca0bfab3
equal deleted inserted replaced
2777:a0ea72846b46 2778:d591e2c90807
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

mercurial