aboutsummaryrefslogtreecommitdiffstats
path: root/prosody
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-06-04 20:48:23 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-06-04 20:48:23 +0500
commit1355e1a64a303cfd22602b38359899417dc5b863 (patch)
treeafa13841edb76f6fc1f481efe20f027aac3db3ce /prosody
parentf39a3c3f1cb89cec099756de35ee95251aa49c3a (diff)
parenta82a7d386ca2cbfb1db79e2cede363516f0a0f99 (diff)
downloadprosody-1355e1a64a303cfd22602b38359899417dc5b863.tar.gz
prosody-1355e1a64a303cfd22602b38359899417dc5b863.zip
Merge with trunk
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