aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-11-21 17:19:57 +0000
committerMatthew Wild <mwild1@gmail.com>2009-11-21 17:19:57 +0000
commitf24860c37c3821c02a5ed91e706c6d4d6fd21bbc (patch)
tree65dc0e865010162173e3abbc586080d618fa171e
parentd578bb8ff2bbdc9623622076c10c0f4236be376d (diff)
downloadprosody-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.lua4
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