From aec90f68408ae3f8cd326733f4f29cccf27839c7 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Thu, 4 Jun 2009 15:24:43 +0100 Subject: prosody: Add support for general 'interface' option which is used as the default network interface --- prosody | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'prosody') 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 -- cgit v1.2.3