projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12555f7
)
net.httpserver: Default 'ports' = {5280}
author
Matthew Wild
<mwild1@gmail.com>
Fri, 17 Dec 2010 01:24:59 +0000
(
01:24
+0000)
committer
Matthew Wild
<mwild1@gmail.com>
Fri, 17 Dec 2010 01:24:59 +0000
(
01:24
+0000)
net/httpserver.lua
patch
|
blob
|
history
diff --git
a/net/httpserver.lua
b/net/httpserver.lua
index ca830a5a13966c05558b507ddb841bc9d1db90b1..4c1200acd7df2bf282dda7565a53c97cb8890f22 100644
(file)
--- 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;