diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-06-04 15:24:43 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-06-04 15:24:43 +0100 |
commit | aec90f68408ae3f8cd326733f4f29cccf27839c7 (patch) | |
tree | ac03243f4b6635c621c5fa9a311becf7354b7f55 | |
parent | 8f7a737f08186fffef7c63c7d5dc98c7b9855dcb (diff) | |
download | prosody-aec90f68408ae3f8cd326733f4f29cccf27839c7.tar.gz prosody-aec90f68408ae3f8cd326733f4f29cccf27839c7.zip |
prosody: Add support for general 'interface' option which is used as the default network interface
-rwxr-xr-x | prosody | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -179,7 +179,9 @@ function net_activate_ports(option, listener, default, conntype) 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 |