mirror of
https://github.com/bjc/prosody.git
synced 2025-04-05 22:27:38 +03:00
net.http.server: Return from listen_on() whatever net.server.addserver() returns
This commit is contained in:
parent
f1d3d688b0
commit
83e7c91e01
1 changed files with 1 additions and 1 deletions
|
@ -294,7 +294,7 @@ function _M.remove_handler(event, handler)
|
|||
end
|
||||
|
||||
function _M.listen_on(port, interface, ssl)
|
||||
addserver(interface or "*", port, listener, "*a", ssl);
|
||||
return addserver(interface or "*", port, listener, "*a", ssl);
|
||||
end
|
||||
function _M.add_host(host)
|
||||
hosts[host] = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue