Comparison

net/connlisteners.lua @ 908:b0ecd18e0558

net.connlisteners: Allow listeners to specify default interface
author Matthew Wild <mwild1@gmail.com>
date Sun, 22 Mar 2009 14:59:28 +0000
parent 896:2c0b9e3c11c3
child 1099:127e6ae089f8
comparison
equal deleted inserted replaced
907:289388b79a83 908:b0ecd18e0558
57 end 57 end
58 end 58 end
59 59
60 return server.addserver(h, 60 return server.addserver(h,
61 (udata and udata.port) or h.default_port or error("Can't start listener "..name.." because no port was specified, and it has no default port", 0), 61 (udata and udata.port) or h.default_port or error("Can't start listener "..name.." because no port was specified, and it has no default port", 0),
62 (udata and udata.interface) or "*", (udata and udata.mode) or h.default_mode or 1, (udata and udata.ssl) or nil, 99999999, udata and udata.type == "ssl"); 62 (udata and udata.interface) or h.default_interface or "*", (udata and udata.mode) or h.default_mode or 1, (udata and udata.ssl) or nil, 99999999, udata and udata.type == "ssl");
63 end 63 end
64 64
65 return _M; 65 return _M;