Software /
code /
prosody
Diff
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 |
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;