Diff

net/http/server.lua @ 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
parent 6963:e3be91ccca05
child 7489:d32406f27efd
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;