Comparison

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
comparison
equal deleted inserted replaced
2020:24f54340a670 2021:43b7c0980d23
276 if ssl then 276 if ssl then
277 ssl.mode = "server"; 277 ssl.mode = "server";
278 ssl.protocol = "sslv23"; 278 ssl.protocol = "sslv23";
279 end 279 end
280 280
281 new{ port = port, base = base, handler = handle_request, ssl = ssl, type = (ssl and "ssl") or "tcp" } 281 new{ port = port, interface = interface,
282 base = base, handler = handle_request,
283 ssl = ssl, type = (ssl and "ssl") or "tcp" };
282 end 284 end
283 end 285 end
284 286
285 _M.request_reader = request_reader; 287 _M.request_reader = request_reader;
286 _M.send_response = send_response; 288 _M.send_response = send_response;