diff options
-rw-r--r-- | net/server.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/server.lua b/net/server.lua index e4230457..da65fce2 100644 --- a/net/server.lua +++ b/net/server.lua @@ -536,7 +536,8 @@ wrapconnection = function( server, listeners, socket, ip, serverport, clientport socket:settimeout( 0 )
handler.readbuffer = handshake
handler.sendbuffer = handshake
- if not socket then -- do handshake
+ handshake( socket ) -- do handshake
+ if not socket then
return nil, nil, "ssl handshake failed";
end
else
|