(trunk libT) #2357: the "upload_only" key sent in PEX should also be sent to trackers

This commit is contained in:
Charles Kerr 2009-08-31 18:33:25 +00:00
parent fdc61b0d0b
commit 78b23a933d
1 changed files with 4 additions and 2 deletions

View File

@ -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" );