1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-22 07:42:37 +00:00

fix: send ltep handshake if received ltep handshake (#7204)

Co-authored-by: Charles Kerr <charles@charleskerr.com>
This commit is contained in:
Yat Ho 2024-12-13 05:19:03 +08:00 committed by GitHub
parent 57e4849cde
commit dd58e42105
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -927,9 +927,14 @@ void tr_peerMsgsImpl::parse_ltep(MessageReader& payload)
{
parse_ltep_handshake(payload);
// The peer most likely supports LTEP, so send our LTEP handshake in
// case we haven't yet. Usually we would have sent our LTEP handshake
// by this point, unless the peer didn't set the "extended" bit (20)
// in the reserved bytes of the BT handshake.
send_ltep_handshake();
if (io_->supports_ltep())
{
send_ltep_handshake();
send_ut_pex();
}
}