aboutsummaryrefslogtreecommitdiffstats
path: root/net/http
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-01-16 22:43:11 +0100
committerKim Alvefur <zash@zash.se>2016-01-16 22:43:11 +0100
commit83e7c91e0130f27720406b87996c4c74b7cc0afe (patch)
tree9fceca7a1a364c862a60206bae01b9e0a940fa14 /net/http
parentf1d3d688b0104093cbee37b089a193753275b40d (diff)
downloadprosody-83e7c91e0130f27720406b87996c4c74b7cc0afe.tar.gz
prosody-83e7c91e0130f27720406b87996c4c74b7cc0afe.zip
net.http.server: Return from listen_on() whatever net.server.addserver() returns
Diffstat (limited to 'net/http')
-rw-r--r--net/http/server.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/http/server.lua b/net/http/server.lua
index 9649d0e8..aeaa7416 100644
--- a/net/http/server.lua
+++ b/net/http/server.lua
@@ -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;