# HG changeset patch # User Matthew Wild # Date 1292549099 0 # Node ID e8be634e217a805a5efe0e818c77fcb3edb3cd9b # Parent db7183f07114c316bc691ab7f9febbb3c06c9c10 net.httpserver: Default 'ports' = {5280} diff -r db7183f07114 -r e8be634e217a net/httpserver.lua --- 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;