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:
parent
57e4849cde
commit
dd58e42105
1 changed files with 6 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue