Changeset 10145
- Timestamp:
- Feb 9, 2010, 1:47:16 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure.ac
r10142 r10145 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 3w])7 m4_define([peer_id_prefix],[-TR18 32-])6 m4_define([user_agent_prefix],[1.84z]) 7 m4_define([peer_id_prefix],[-TR184z-]) 8 8 9 9 AC_INIT([transmission], -
trunk/libtransmission/web.c
r10098 r10145 318 318 else 319 319 { 320 static FILE * fp = NULL; 320 321 CURL * e = curl_easy_init( ); 321 322 struct tr_web * web = session->web; 322 323 const int timeout = getTimeoutFromURL( task->url ); 323 const long verbose = getenv( "TR_CURL_VERBOSE" ) != NULL;324 //const long verbose = getenv( "TR_CURL_VERBOSE" ) != NULL; 324 325 const char * user_agent = TR_NAME "/" SHORT_VERSION_STRING; 325 326 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 } 326 332 327 333 /* insert the resolved host into the URL s.t. curl's DNS won't block … … 392 398 curl_easy_setopt( e, CURLOPT_URL, url ? url : task->url ); 393 399 curl_easy_setopt( e, CURLOPT_USERAGENT, user_agent ); 394 curl_easy_setopt( e, CURLOPT_VERBOSE, verbose ); 400 //curl_easy_setopt( e, CURLOPT_VERBOSE, verbose ); 401 curl_easy_setopt( e, CURLOPT_VERBOSE, TRUE ); 402 curl_easy_setopt( e, CURLOPT_STDERR, fp ); 395 403 if( web->haveAddr ) 396 404 curl_easy_setopt( e, CURLOPT_INTERFACE, tr_ntop_non_ts( &web->addr ) );
Note: See TracChangeset
for help on using the changeset viewer.