aboutsummaryrefslogtreecommitdiffstats
path: root/net
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
commitc218f83032dc79367f4ccadbe6515e7d68b985d0 (patch)
treeeb7d7233be53512fbb682cfc48ff135e22083a20 /net
parentfb1317e021b2b62651183e95d1f88cee7d0f4077 (diff)
downloadprosody-c218f83032dc79367f4ccadbe6515e7d68b985d0.tar.gz
prosody-c218f83032dc79367f4ccadbe6515e7d68b985d0.zip
net.httpserver: Default 'ports' = {5280}
Diffstat (limited to 'net')
-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;