aboutsummaryrefslogtreecommitdiffstats
path: root/net/httpserver.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-12-17 01:24:59 +0000
committerMatthew Wild <mwild1@gmail.com>2010-12-17 01:24:59 +0000
commit7ea98c6eb48a46e27efcc5e65516d95aaf1e314b (patch)
treecfbd34d713ad9921f65710549776b46f7d27a53b /net/httpserver.lua
parent47045ad74597e770e888e4bddf4db6490d003c34 (diff)
downloadprosody-7ea98c6eb48a46e27efcc5e65516d95aaf1e314b.tar.gz
prosody-7ea98c6eb48a46e27efcc5e65516d95aaf1e314b.zip
net.httpserver: Default 'ports' = {5280}
Diffstat (limited to 'net/httpserver.lua')
-rw-r--r--net/httpserver.lua1
1 files changed, 1 insertions, 0 deletions
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;