mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 21:57:45 +03:00
net.httpserver: Default 'ports' = {5280}
This commit is contained in:
parent
fb1317e021
commit
c218f83032
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue