Comparison

core/portmanager.lua @ 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
parent 5047:aab64739022e
child 5225:079e4cb23f89
comparison
equal deleted inserted replaced
5085:cbc7eb5cfa8c 5087:71a5a6a6c74c
80 config_prefix = ""; 80 config_prefix = "";
81 end 81 end
82 82
83 local bind_interfaces = config.get("*", config_prefix.."interfaces") 83 local bind_interfaces = config.get("*", config_prefix.."interfaces")
84 or config.get("*", config_prefix.."interface") -- COMPAT w/pre-0.9 84 or config.get("*", config_prefix.."interface") -- COMPAT w/pre-0.9
85 or (service_info.private and default_local_interfaces) 85 or (service_info.private and (config.get("*", "local_interfaces") or default_local_interfaces))
86 or config.get("*", "interfaces") 86 or config.get("*", "interfaces")
87 or config.get("*", "interface") -- COMPAT w/pre-0.9 87 or config.get("*", "interface") -- COMPAT w/pre-0.9
88 or listener.default_interface -- COMPAT w/pre0.9 88 or listener.default_interface -- COMPAT w/pre0.9
89 or default_interfaces 89 or default_interfaces
90 bind_interfaces = set.new(type(bind_interfaces)~="table" and {bind_interfaces} or bind_interfaces); 90 bind_interfaces = set.new(type(bind_interfaces)~="table" and {bind_interfaces} or bind_interfaces);