Changeset

7084:fdbe9ccac17d

net.http.server: Return from listen_on() whatever net.server.addserver() returns
author Kim Alvefur <zash@zash.se>
date Sat, 16 Jan 2016 22:43:11 +0100
parents 7083:ac920b0f9eae
children 7085:343be83ddfa6 7087:dd8265ca9327
files net/http/server.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/net/http/server.lua	Tue Jan 12 23:48:16 2016 +0100
+++ b/net/http/server.lua	Sat Jan 16 22:43:11 2016 +0100
@@ -294,7 +294,7 @@
 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;