From 7ea98c6eb48a46e27efcc5e65516d95aaf1e314b Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Fri, 17 Dec 2010 01:24:59 +0000 Subject: net.httpserver: Default 'ports' = {5280} --- net/httpserver.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'net/httpserver.lua') diff --git a/net/httpserver.lua b/net/httpserver.lua index ca830a5a..4c1200ac 100644 --- a/net/httpserver.lua +++ b/net/httpserver.lua @@ -190,6 +190,7 @@ function new_from_config(ports, handle_request, default_options) 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; -- cgit v1.2.3