mirror of
https://github.com/transmission/transmission
synced 2024-12-25 09:13:06 +00:00
(trunk libT) #2357: the "upload_only" key sent in PEX should also be sent to trackers
This commit is contained in:
parent
fdc61b0d0b
commit
78b23a933d
1 changed files with 4 additions and 2 deletions
|
@ -776,7 +776,8 @@ buildTrackerRequestURI( tr_tracker * t,
|
|||
"&compact=1"
|
||||
"&supportcrypto=1"
|
||||
"&numwant=%d"
|
||||
"&key=%s",
|
||||
"&key=%s"
|
||||
"&upload_only=%d", /* ticket #2357 */
|
||||
strchr( ann, '?' ) ? '&' : '?',
|
||||
t->escaped,
|
||||
t->peer_id,
|
||||
|
@ -786,7 +787,8 @@ buildTrackerRequestURI( tr_tracker * t,
|
|||
torrent->corruptCur,
|
||||
tr_cpLeftUntilComplete( &torrent->completion ),
|
||||
numwant,
|
||||
t->key_param );
|
||||
t->key_param,
|
||||
tr_torrentIsSeed( torrent ) ? 1 : 0 );
|
||||
|
||||
if( t->session->encryptionMode == TR_ENCRYPTION_REQUIRED )
|
||||
evbuffer_add_printf( buf, "&requirecrypto=1" );
|
||||
|
|
Loading…
Reference in a new issue