Software /
code /
prosody
Changeset
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 |
parents | 1297:9c8f86a3878d |
children | 1299:997ac65a85f4 |
files | prosody |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/prosody Thu Jun 04 15:22:04 2009 +0100 +++ b/prosody Thu Jun 04 15:24:43 2009 +0100 @@ -179,7 +179,9 @@ cl.start(listener, { ssl = conntype ~= "tcp" and global_ssl_ctx, port = port, - interface = config.get("*", "core", option.."_interface"), + interface = config.get("*", "core", option.."_interface") + or cl.get(listener).default_interface + or config.get("*", "core", "interface"), type = conntype }); end