# HG changeset patch # User Matthew Wild # Date 1292549099 0 # Node ID 632f7038a67a87336dc023c7160adcf73e75f236 # Parent ea80b338097628b6cfd17e87460a470ca84b3836 net.httpserver: Default 'ports' = {5280} diff -r ea80b3380976 -r 632f7038a67a 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;