(trunk libT) #2225: support supportcypto and requirecrypto flags in http tracker announces

This commit is contained in:
Charles Kerr 2009-06-18 20:33:04 +00:00
parent dbc9c0fb7d
commit 19a8b6193c
1 changed files with 4 additions and 0 deletions

View File

@ -754,6 +754,7 @@ buildTrackerRequestURI( tr_tracker * t,
"&corrupt=%" PRIu64 "&corrupt=%" PRIu64
"&left=%" PRIu64 "&left=%" PRIu64
"&compact=1" "&compact=1"
"&supportcrypto=1"
"&numwant=%d" "&numwant=%d"
"&key=%s", "&key=%s",
strchr( ann, '?' ) ? '&' : '?', strchr( ann, '?' ) ? '&' : '?',
@ -767,6 +768,9 @@ buildTrackerRequestURI( tr_tracker * t,
numwant, numwant,
t->key_param ); t->key_param );
if( t->session->encryptionMode == TR_ENCRYPTION_REQUIRED )
evbuffer_add_printf( buf, "&requirecrypto=1" );
if( eventName && *eventName ) if( eventName && *eventName )
evbuffer_add_printf( buf, "&event=%s", eventName ); evbuffer_add_printf( buf, "&event=%s", eventName );