Diff

net/httpserver.lua @ 2021:43b7c0980d23

net.httpserver: Pass on interface option from new_from_config() (thanks Chris)
author Matthew Wild <mwild1@gmail.com>
date Mon, 19 Oct 2009 17:56:39 +0100
parent 1868:36e1238db2f2
child 2066:b3a640892549
line wrap: on
line diff
--- a/net/httpserver.lua	Mon Oct 19 16:53:50 2009 +0100
+++ b/net/httpserver.lua	Mon Oct 19 17:56:39 2009 +0100
@@ -278,7 +278,9 @@
 			ssl.protocol = "sslv23";
 		end
 		
-		new{ port = port, base = base, handler = handle_request, ssl = ssl, type = (ssl and "ssl") or "tcp" }
+		new{ port = port, interface = interface, 
+			base = base, handler = handle_request, 
+			ssl = ssl, type = (ssl and "ssl") or "tcp" };
 	end
 end