aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-08-10 16:31:51 +0100
committerMatthew Wild <mwild1@gmail.com>2012-08-10 16:31:51 +0100
commitc6fcddc61452230be89d62087e4a647bccfc34a2 (patch)
tree8f95148775ac79a62ad5315f374b42bae0f80ac5 /core
parent65fafa7b630fb34fdceb644d080dba517b47d142 (diff)
downloadprosody-c6fcddc61452230be89d62087e4a647bccfc34a2.tar.gz
prosody-c6fcddc61452230be89d62087e4a647bccfc34a2.zip
portmanager: Support 'local_interfaces' config option (default for private listeners like components, telnet, etc.) (thanks mva)
Diffstat (limited to 'core')
-rw-r--r--core/portmanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/portmanager.lua b/core/portmanager.lua
index 4fa48420..8938be65 100644
--- a/core/portmanager.lua
+++ b/core/portmanager.lua
@@ -82,7 +82,7 @@ function activate(service_name)
local bind_interfaces = config.get("*", config_prefix.."interfaces")
or config.get("*", config_prefix.."interface") -- COMPAT w/pre-0.9
- or (service_info.private and default_local_interfaces)
+ or (service_info.private and (config.get("*", "local_interfaces") or default_local_interfaces))
or config.get("*", "interfaces")
or config.get("*", "interface") -- COMPAT w/pre-0.9
or listener.default_interface -- COMPAT w/pre0.9