Changeset

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
parents 907:289388b79a83
children 909:505a2cbb823d
files net/connlisteners.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/net/connlisteners.lua	Sun Mar 22 14:14:40 2009 +0000
+++ b/net/connlisteners.lua	Sun Mar 22 14:59:28 2009 +0000
@@ -59,7 +59,7 @@
 	
 	return server.addserver(h, 
 			(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), 
-				(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");
+				(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");
 end
 
 return _M;