1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 09:37:56 +00:00

(trunk libT) re-add the supportcrypto, requirecrypto announce arguments that were removed during announce testing in r10090

This commit is contained in:
Charles Kerr 2010-02-11 00:43:47 +00:00
parent 9fffb2be35
commit c35d4696ee

View file

@ -658,6 +658,8 @@ createAnnounceURL( const tr_announcer * announcer,
const char * str;
const unsigned char * ipv6;
evbuffer_expand( buf, 2048 );
evbuffer_add_printf( buf, "%s"
"%c"
"info_hash=%s"
@ -668,7 +670,8 @@ createAnnounceURL( const tr_announcer * announcer,
"&left=%" PRIu64
"&numwant=%d"
"&key=%s"
"&compact=1",
"&compact=1"
"&supportcrypto=1",
ann,
strchr( ann, '?' ) ? '&' : '?',
torrent->info.hashEscaped,
@ -680,6 +683,9 @@ createAnnounceURL( const tr_announcer * announcer,
numwant,
tracker->key_param );
if( announcer->session->encryptionMode == TR_ENCRYPTION_REQUIRED )
evbuffer_add_printf( buf, "&requirecrypto=1" );
if( tier->byteCounts[TR_ANN_CORRUPT] )
evbuffer_add_printf( buf, "&corrupt=%" PRIu64, tier->byteCounts[TR_ANN_CORRUPT] );