Changeset

3877:632f7038a67a

net.httpserver: Default 'ports' = {5280}
author Matthew Wild <mwild1@gmail.com>
date Fri, 17 Dec 2010 01:24:59 +0000
parents 3876:ea80b3380976
children 3878:c9de91c4173f
files net/httpserver.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/net/httpserver.lua	Wed Dec 15 04:05:49 2010 +0500
+++ b/net/httpserver.lua	Fri Dec 17 01:24:59 2010 +0000
@@ -190,6 +190,7 @@
 		log("warn", "Old syntax of httpserver.new_from_config being used to register %s", handle_request);
 		handle_request, default_options = default_options, { base = handle_request };
 	end
+	ports = ports or {5280};
 	for _, options in ipairs(ports) do
 		local port = default_options.port or 5280;
 		local base = default_options.base;