net.http.server: Return from listen_on() whatever net.server.addserver() returns

This commit is contained in:
Kim Alvefur 2016-01-16 22:43:11 +01:00
parent f1d3d688b0
commit 83e7c91e01

View file

@ -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;