aboutsummaryrefslogtreecommitdiffstats
path: root/prosody
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-06-04 15:24:43 +0100
committerMatthew Wild <mwild1@gmail.com>2009-06-04 15:24:43 +0100
commitaec90f68408ae3f8cd326733f4f29cccf27839c7 (patch)
treeac03243f4b6635c621c5fa9a311becf7354b7f55 /prosody
parent8f7a737f08186fffef7c63c7d5dc98c7b9855dcb (diff)
downloadprosody-aec90f68408ae3f8cd326733f4f29cccf27839c7.tar.gz
prosody-aec90f68408ae3f8cd326733f4f29cccf27839c7.zip
prosody: Add support for general 'interface' option which is used as the default network interface
Diffstat (limited to 'prosody')
-rwxr-xr-xprosody4
1 files changed, 3 insertions, 1 deletions
diff --git a/prosody b/prosody
index f5f51bab..577dc178 100755
--- a/prosody
+++ b/prosody
@@ -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