Changeset 10146


Ignore:
Timestamp:
Feb 9, 2010, 2:46:40 AM (12 years ago)
Author:
charles
Message:

(trunk) revert that last commit, which was only intended for about a dozen people. Unless you're one of them (and you don't know, then you're not) DON'T USE r10145. r10145 -- ONLY r10145 -- stored user's tracker announces to a logfile in /tmp.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r10145 r10146  
    44dnl         "0" for stable, supported releases
    55dnl these should be the only two lines you need to change
    6 m4_define([user_agent_prefix],[1.84z])
    7 m4_define([peer_id_prefix],[-TR184z-])
     6m4_define([user_agent_prefix],[1.83])
     7m4_define([peer_id_prefix],[-TR1830-])
    88
    99AC_INIT([transmission],
  • trunk/libtransmission/web.c

    r10145 r10146  
    318318    else
    319319    {
    320 static FILE * fp = NULL;
    321320        CURL * e = curl_easy_init( );
    322321        struct tr_web * web = session->web;
    323322        const int timeout = getTimeoutFromURL( task->url );
    324         //const long verbose = getenv( "TR_CURL_VERBOSE" ) != NULL;
     323        const long verbose = getenv( "TR_CURL_VERBOSE" ) != NULL;
    325324        const char * user_agent = TR_NAME "/" SHORT_VERSION_STRING;
    326325        char * url = NULL;
    327 
    328 if( fp == NULL ) {
    329     fp = fopen( "/tmp/transmission-announce-log.txt", "a+" );
    330     fprintf( fp, "Starting new Transmission session...\n" );
    331 }
    332326
    333327        /* insert the resolved host into the URL s.t. curl's DNS won't block
     
    398392        curl_easy_setopt( e, CURLOPT_URL, url ? url : task->url );
    399393        curl_easy_setopt( e, CURLOPT_USERAGENT, user_agent );
    400         //curl_easy_setopt( e, CURLOPT_VERBOSE, verbose );
    401 curl_easy_setopt( e, CURLOPT_VERBOSE, TRUE );
    402 curl_easy_setopt( e, CURLOPT_STDERR, fp );
     394        curl_easy_setopt( e, CURLOPT_VERBOSE, verbose );
    403395        if( web->haveAddr )
    404396            curl_easy_setopt( e, CURLOPT_INTERFACE, tr_ntop_non_ts( &web->addr ) );
Note: See TracChangeset for help on using the changeset viewer.