mirror of
https://github.com/transmission/transmission
synced 2024-12-26 01:27:28 +00:00
(trunk libT) re-add the supportcrypto, requirecrypto announce arguments that were removed during announce testing in r10090
This commit is contained in:
parent
9fffb2be35
commit
c35d4696ee
1 changed files with 7 additions and 1 deletions
|
@ -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] );
|
||||
|
||||
|
|
Loading…
Reference in a new issue