Diff

net/server.lua @ 1036:b2e19c66ec7f

net.server: Fix incorrect parameter passing
author Matthew Wild <mwild1@gmail.com>
date Wed, 22 Apr 2009 20:19:33 +0100
parent 1035:8cc7e4452b2b
child 1039:cc4280f45d0e
line wrap: on
line diff
--- a/net/server.lua	Wed Apr 22 20:19:04 2009 +0100
+++ b/net/server.lua	Wed Apr 22 20:19:33 2009 +0100
@@ -795,7 +795,7 @@
     if err then    -- try again
         local handler = wrapclient( client, address, port, listeners )
     else
-        wrapconnection( server, listeners, socket, address, port, "clientport", pattern, sslctx, startssl )
+        wrapconnection( server, listeners, client, address, port, "clientport", pattern, sslctx, startssl )
     end
 end