Mon, 19 Oct 2009 17:56:39 +0100
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