Changeset

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
parents 2020:24f54340a670
children 2022:9cbf4e8cb0ed
files net/httpserver.lua
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
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