Changeset 10154
- Timestamp:
- Feb 10, 2010, 4:35:59 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure.ac
r10146 r10154 4 4 dnl "0" for stable, supported releases 5 5 dnl these should be the only two lines you need to change 6 m4_define([user_agent_prefix],[1.8 3])7 m4_define([peer_id_prefix],[-TR18 30-])6 m4_define([user_agent_prefix],[1.84y]) 7 m4_define([peer_id_prefix],[-TR184y-]) 8 8 9 9 AC_INIT([transmission], -
trunk/libtransmission/web.c
r10152 r10154 320 320 else 321 321 { 322 static FILE * fp = NULL; 322 323 CURL * e = curl_easy_init( ); 323 324 struct tr_web * web = session->web; 324 325 const int timeout = getTimeoutFromURL( task->url ); 325 const long verbose = getenv( "TR_CURL_VERBOSE" ) != NULL;326 //const long verbose = getenv( "TR_CURL_VERBOSE" ) != NULL; 326 327 const char * user_agent = TR_NAME "/" SHORT_VERSION_STRING; 328 329 if( fp == NULL ) { 330 fp = fopen( "/tmp/transmission-announce-log.txt", "a+" ); 331 fprintf( fp, "Starting new Transmission session...\n" ); 332 } 327 333 328 334 /* insert the resolved host into the URL s.t. curl's DNS won't block … … 393 399 curl_easy_setopt( e, CURLOPT_URL, task->resolved_url ? task->resolved_url : task->url ); 394 400 curl_easy_setopt( e, CURLOPT_USERAGENT, user_agent ); 395 curl_easy_setopt( e, CURLOPT_VERBOSE, verbose ); 401 //curl_easy_setopt( e, CURLOPT_VERBOSE, verbose ); 402 curl_easy_setopt( e, CURLOPT_VERBOSE, TRUE ); 403 curl_easy_setopt( e, CURLOPT_STDERR, fp ); 396 404 if( web->haveAddr ) 397 405 curl_easy_setopt( e, CURLOPT_INTERFACE, tr_ntop_non_ts( &web->addr ) );
Note: See TracChangeset
for help on using the changeset viewer.