Software /
code /
prosody
Diff
net/server.lua @ 319:4a8a949c3870
Fix for putting TLS in stream:features for connections already using TLS. Thanks to albert for spotting.
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 16 Nov 2008 00:29:15 +0000 |
parent | 127:93f3c6b94c75 |
child | 328:a1d25769970f |
line wrap: on
line diff
--- 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