mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
Fix for putting TLS in stream:features for connections already using TLS. Thanks to albert for spotting.
This commit is contained in:
parent
17768803c9
commit
d3497ccf48
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue