Changeset

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
parents 4582:542afb9c2ab1
children 4584:9a5de6509aa8
files core/portmanager.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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);