aboutsummaryrefslogtreecommitdiffstats
path: root/prosody
diff options
context:
space:
mode:
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