1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-12 07:03:44 +00:00

remove the ability to disable scraping - the demand for this feature is too low currently (this also reenables scraping on all clients)

This commit is contained in:
Mitchell Livingston 2008-04-09 20:50:14 +00:00
parent e66074c1a6
commit 8c5da6178b
4 changed files with 4 additions and 29 deletions

View file

@ -55,7 +55,6 @@ const uint8_t* tr_getPeerId( void );
struct tr_handle
{
unsigned int isScrapeEnabled : 1;
unsigned int isPortSet : 1;
unsigned int isPexEnabled : 1;
unsigned int isClosed : 1;

View file

@ -178,8 +178,7 @@ trackerSupportsScrape( const tr_tracker * t )
{
const tr_tracker_info * info = getCurrentAddress( t );
return ( t->handle->isScrapeEnabled )
&& ( info != NULL )
return ( info != NULL )
&& ( info->scrape != NULL )
&& ( info->scrape[0] != '\0' );
}

View file

@ -130,7 +130,6 @@ tr_initFull( const char * configDir,
int isBlocklistEnabled )
{
tr_handle * h;
char buf[128];
char filename[MAX_PATH_LENGTH];
#ifndef WIN32
@ -183,9 +182,7 @@ tr_initFull( const char * configDir,
/* first %s is the application name
second %s is the version number */
snprintf( buf, sizeof( buf ), _( "%s %s started" ),
TR_NAME, LONG_VERSION_STRING );
tr_inf( "%s", buf );
tr_inf( "%s %s started", TR_NAME, LONG_VERSION_STRING );
/* initialize the blocklist */
tr_buildPath( filename, sizeof( filename ), h->configDir, "blocklists", NULL );
@ -541,19 +538,3 @@ tr_blocklistHasAddress( tr_handle * handle, const struct in_addr * addr )
{
return _tr_blocklistHasAddress( handle->blocklist, addr );
}
/***
****
***/
void
tr_setScrapeEnabled( tr_handle * handle, int isEnabled )
{
handle->isScrapeEnabled = isEnabled ? 1 : 0;
}
int
tr_isScrapeEnabled( const tr_handle * handle )
{
return handle->isScrapeEnabled;
}

View file

@ -607,10 +607,6 @@ void tr_manualUpdate( tr_torrent * );
int tr_torrentCanManualUpdate( const tr_torrent * );
void tr_setScrapeEnabled( tr_handle * , int isEnabled );
int tr_isScrapeEnabled( const tr_handle * );
/***********************************************************************
* tr_torrentStat
***********************************************************************
@ -857,8 +853,8 @@ struct tr_stat
#define TR_ETA_NOT_AVAIL -1
#define TR_ETA_UNKNOWN -2
/* seconds */
int eta;
/* seconds */
int eta;
int peersKnown;
int peersConnected;