# HG changeset patch # User Kim Alvefur # Date 1335358434 -7200 # Node ID bd3a852b949a1f7c1de5da3a57b836257ee13c2e # Parent 5fd661424b9ff070451f85dfe75362f19d3a3913 portmanager: Fix selecting bind_interfaces from pre-0.9 config options. diff -r 5fd661424b9f -r bd3a852b949a core/portmanager.lua --- a/core/portmanager.lua Wed Apr 25 03:56:26 2012 +0100 +++ b/core/portmanager.lua Wed Apr 25 14:53:54 2012 +0200 @@ -76,13 +76,14 @@ config_prefix = ""; end - local bind_interfaces = set.new(config.get("*", config_prefix.."interfaces") + 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 config.get("*", "interfaces") or config.get("*", "interface") -- COMPAT w/pre-0.9 or listener.default_interface -- COMPAT w/pre0.9 - or default_interfaces); + or default_interfaces + bind_interfaces = set.new(type(bind_interfaces)~="table" and {bind_interfaces} or bind_interfaces); local bind_ports = set.new(config.get("*", config_prefix.."ports") or service_info.default_ports