From d3497ccf48b98f6d41d56b35aac563cc4dcb76a5 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sun, 16 Nov 2008 00:29:15 +0000 Subject: Fix for putting TLS in stream:features for connections already using TLS. Thanks to albert for spotting. --- net/server.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/server.lua b/net/server.lua index 40cc6dc8..3bbe80b4 100644 --- a/net/server.lua +++ b/net/server.lua @@ -523,6 +523,8 @@ wraptlsclient = function( listener, socket, ip, serverport, clientport, mode, ss return receive( socket, pattern, prefix ) end + handler.starttls = nil; + handler.handshake = coroutine_wrap( function( client ) local err for i = 1, 10 do -- 10 handshake attemps -- cgit v1.2.3