(trunk libT) #2225: support supportcypto and requirecrypto flags in http tracker announces
This commit is contained in:
parent
dbc9c0fb7d
commit
19a8b6193c
|
@ -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 );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue