Software /
code /
prosody
Comparison
prosody @ 1298:4e0db19e5f1c
prosody: Add support for general 'interface' option which is used as the default network interface
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 04 Jun 2009 15:24:43 +0100 |
parent | 1242:6c459c279bbe |
child | 1311:fc113027a1d5 |
comparison
equal
deleted
inserted
replaced
1297:9c8f86a3878d | 1298:4e0db19e5f1c |
---|---|
177 log("error", "Non-numeric "..option.."_ports: "..tostring(port)); | 177 log("error", "Non-numeric "..option.."_ports: "..tostring(port)); |
178 else | 178 else |
179 cl.start(listener, { | 179 cl.start(listener, { |
180 ssl = conntype ~= "tcp" and global_ssl_ctx, | 180 ssl = conntype ~= "tcp" and global_ssl_ctx, |
181 port = port, | 181 port = port, |
182 interface = config.get("*", "core", option.."_interface"), | 182 interface = config.get("*", "core", option.."_interface") |
183 or cl.get(listener).default_interface | |
184 or config.get("*", "core", "interface"), | |
183 type = conntype | 185 type = conntype |
184 }); | 186 }); |
185 end | 187 end |
186 end | 188 end |
187 end | 189 end |