From 19a8b6193c2671091f7e9dc79cd762564f4705a5 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Thu, 18 Jun 2009 20:33:04 +0000 Subject: [PATCH] (trunk libT) #2225: support supportcypto and requirecrypto flags in http tracker announces --- libtransmission/tracker.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libtransmission/tracker.c b/libtransmission/tracker.c index 5027c4ad2..e90fe5487 100644 --- a/libtransmission/tracker.c +++ b/libtransmission/tracker.c @@ -754,6 +754,7 @@ buildTrackerRequestURI( tr_tracker * t, "&corrupt=%" PRIu64 "&left=%" PRIu64 "&compact=1" + "&supportcrypto=1" "&numwant=%d" "&key=%s", strchr( ann, '?' ) ? '&' : '?', @@ -767,6 +768,9 @@ buildTrackerRequestURI( tr_tracker * t, numwant, t->key_param ); + if( t->session->encryptionMode == TR_ENCRYPTION_REQUIRED ) + evbuffer_add_printf( buf, "&requirecrypto=1" ); + if( eventName && *eventName ) evbuffer_add_printf( buf, "&event=%s", eventName );