Fix for putting TLS in stream:features for connections already using TLS. Thanks to albert for spotting.

Sun, 16 Nov 2008 00:29:15 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Sun, 16 Nov 2008 00:29:15 +0000
changeset 319
4a8a949c3870
parent 318
cc20ea4a8697
child 320
b7a24b0ce767

Fix for putting TLS in stream:features for connections already using TLS. Thanks to albert for spotting.

net/server.lua file | annotate | diff | comparison | revisions
--- a/net/server.lua	Sun Nov 16 00:27:40 2008 +0000
+++ b/net/server.lua	Sun Nov 16 00:29:15 2008 +0000
@@ -523,6 +523,8 @@
 			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

mercurial