Software /
code /
prosody
Diff
core/portmanager.lua @ 4583:6f2789939d35
core.portmanager: Make sure the private flag takes precedence over global interfaces
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 03 Mar 2012 00:54:19 +0100 |
parent | 4546:c686860ef410 |
child | 4597:25d89c7d6aee |
line wrap: on
line diff
--- a/core/portmanager.lua Sat Mar 03 00:32:57 2012 +0100 +++ b/core/portmanager.lua Sat Mar 03 00:54:19 2012 +0100 @@ -62,9 +62,9 @@ local bind_interfaces = set.new(config.get("*", service_name.."_interfaces") or config.get("*", service_name.."_interface") -- COMPAT w/pre-0.9 + or (service_info.private and default_local_interfaces) or config.get("*", "interfaces") or config.get("*", "interface") -- COMPAT w/pre-0.9 - or (service_info.private and default_local_interfaces) or service_info.default_interface -- COMPAT w/pre0.9 or default_interfaces);