Software /
code /
prosody
Changeset
2109:0dc5eb9dbb62
net.server_select: Change addserver() parameters to be compatible with new standard syntax
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 21 Nov 2009 17:19:57 +0000 |
parents | 2108:6425bc039430 |
children | 2110:99a7f291ddd8 |
files | net/server_select.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/net/server_select.lua Sat Nov 21 17:16:46 2009 +0000 +++ b/net/server_select.lua Sat Nov 21 17:19:57 2009 +0000 @@ -692,7 +692,7 @@ ----------------------------------// PUBLIC //-- -addserver = function( listeners, port, addr, pattern, sslctx, maxconnections, startssl ) -- this function provides a way for other scripts to reg a server +addserver = function( addr, port, listeners, pattern, sslctx, startssl ) -- this function provides a way for other scripts to reg a server local err --out_put("server.lua: autossl on ", port, " is ", startssl) if type( listeners ) ~= "table" then @@ -715,7 +715,7 @@ out_error( "server.lua, port ", port, ": ", err ) return nil, err end - local handler, err = wrapserver( listeners, server, addr, port, pattern, sslctx, maxconnections, startssl ) -- wrap new server socket + local handler, err = wrapserver( listeners, server, addr, port, pattern, sslctx, _maxclientsperserver, startssl ) -- wrap new server socket if not handler then server:close( ) return nil, err