diff options
author | Matthew Wild <mwild1@gmail.com> | 2012-08-10 16:31:51 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2012-08-10 16:31:51 +0100 |
commit | 96824a74d241b48cb0d966723dea6cf15cf70f39 (patch) | |
tree | 8f95148775ac79a62ad5315f374b42bae0f80ac5 /core/portmanager.lua | |
parent | a3c13a5074a5b2967402be5a4d29408714940289 (diff) | |
download | prosody-96824a74d241b48cb0d966723dea6cf15cf70f39.tar.gz prosody-96824a74d241b48cb0d966723dea6cf15cf70f39.zip |
portmanager: Support 'local_interfaces' config option (default for private listeners like components, telnet, etc.) (thanks mva)
Diffstat (limited to 'core/portmanager.lua')
-rw-r--r-- | core/portmanager.lua | 2 |
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 |