Diff

core/portmanager.lua @ 4624:3e4715d44561

portmanager: Support 'default_port' in service options
author Matthew Wild <mwild1@gmail.com>
date Thu, 15 Mar 2012 16:29:30 +0000
parent 4618:1ec8122ddffe
child 4677:05d8b4099cf5
line wrap: on
line diff
--- a/core/portmanager.lua	Thu Mar 15 14:47:46 2012 +0100
+++ b/core/portmanager.lua	Thu Mar 15 16:29:30 2012 +0000
@@ -86,7 +86,9 @@
 	
 	local bind_ports = set.new(config.get("*", config_prefix.."ports")
 		or service_info.default_ports
-		or {listener.default_port}); -- COMPAT w/pre-0.9
+		or {service_info.default_port
+		    or listener.default_port -- COMPAT w/pre-0.9
+		   });
 
 	local mode = listener.default_mode or "*a";
 	local ssl;