net.httpserver: Pass on interface option from new_from_config() (thanks Chris)

Mon, 19 Oct 2009 17:56:39 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Mon, 19 Oct 2009 17:56:39 +0100
changeset 2021
43b7c0980d23
parent 2020
24f54340a670
child 2022
9cbf4e8cb0ed

net.httpserver: Pass on interface option from new_from_config() (thanks Chris)

net/httpserver.lua file | annotate | diff | comparison | revisions
--- 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
 

mercurial