prosody

changeset 2365
0bd8408a491c
parent 2364
b79e5ba69704
child 2428
3ba9db4b9311
equal deleted inserted replaced
2364:b79e5ba69704 2365:0bd8408a491c
206 log("error", "Non-numeric "..ports_option..": "..tostring(port)); 206 log("error", "Non-numeric "..ports_option..": "..tostring(port));
207 else 207 else
208 cl.start(listener, { 208 cl.start(listener, {
209 ssl = conntype ~= "tcp" and global_ssl_ctx, 209 ssl = conntype ~= "tcp" and global_ssl_ctx,
210 port = port, 210 port = port,
211 interface = config.get("*", "core", option.."_interface") 211 interface = (option and config.get("*", "core", option.."_interface"))
212 or cl.get(listener).default_interface 212 or cl.get(listener).default_interface
213 or config.get("*", "core", "interface"), 213 or config.get("*", "core", "interface"),
214 type = conntype 214 type = conntype
215 }); 215 });
216 end 216 end
217 end 217 end

mercurial