Software /
code /
prosody
Changeset
5087:71a5a6a6c74c
portmanager: Support 'local_interfaces' config option (default for private listeners like components, telnet, etc.) (thanks mva)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 10 Aug 2012 16:31:51 +0100 |
parents | 5085:cbc7eb5cfa8c |
children | 5088:d5bb9cd2e6df |
files | core/portmanager.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/core/portmanager.lua Wed Aug 08 11:49:31 2012 +0100 +++ b/core/portmanager.lua Fri Aug 10 16:31:51 2012 +0100 @@ -82,7 +82,7 @@ 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