mirror of
https://github.com/transmission/transmission
synced 2025-02-03 04:53:27 +00:00
#613: fix handshake error with libtorrent / mainline peers
This commit is contained in:
parent
d98fbdc6e4
commit
d922389c9d
2 changed files with 6 additions and 1 deletions
4
NEWS
4
NEWS
|
@ -6,6 +6,10 @@ NEWS file for Transmission <http://www.transmissionbt.com/>
|
|||
+ Leopard: Group dividers
|
||||
+ Use the file icon as the per-torrent action button
|
||||
|
||||
1.03 (2008/xx/yy)
|
||||
- All Platforms:
|
||||
+ Fix handshake bug with peers that support LTEP
|
||||
|
||||
1.02 (2008/01/22)
|
||||
- All Platforms:
|
||||
+ Fix 1.00 bug that choked some models of routers
|
||||
|
|
|
@ -849,10 +849,11 @@ parseLtepHandshake( tr_peermsgs * msgs, int len, struct evbuffer * inbuf )
|
|||
: ENCRYPTION_PREFERENCE_NO;
|
||||
|
||||
/* check supported messages for utorrent pex */
|
||||
msgs->peerSupportsPex = 0;
|
||||
if(( sub = tr_bencDictFindType( &val, "m", TYPE_DICT ))) {
|
||||
if(( sub = tr_bencDictFindType( sub, "ut_pex", TYPE_INT ))) {
|
||||
msgs->peerSupportsPex = 1;
|
||||
msgs->ut_pex_id = (uint8_t) sub->val.i;
|
||||
msgs->peerSupportsPex = msgs->ut_pex_id == 0 ? 0 : 1;
|
||||
dbgmsg( msgs, "msgs->ut_pex is %d", (int)msgs->ut_pex_id );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue