diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-11-21 17:19:57 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-11-21 17:19:57 +0000 |
commit | f24860c37c3821c02a5ed91e706c6d4d6fd21bbc (patch) | |
tree | 65dc0e865010162173e3abbc586080d618fa171e | |
parent | d578bb8ff2bbdc9623622076c10c0f4236be376d (diff) | |
download | prosody-f24860c37c3821c02a5ed91e706c6d4d6fd21bbc.tar.gz prosody-f24860c37c3821c02a5ed91e706c6d4d6fd21bbc.zip |
net.server_select: Change addserver() parameters to be compatible with new standard syntax
-rw-r--r-- | net/server_select.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/server_select.lua b/net/server_select.lua index 6ab8ce91..eebaeb81 100644 --- a/net/server_select.lua +++ b/net/server_select.lua @@ -692,7 +692,7 @@ end ----------------------------------// 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 @@ addserver = function( listeners, port, addr, pattern, sslctx, maxconnections, st 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
|