Changeset 2305


Ignore:
Timestamp:
Jul 9, 2007, 4:34:54 AM (15 years ago)
Author:
charles
Message:

add Transmission's SVN version number to the id string we send the tracker

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/transmission.c

    r2202 r2305  
    5555       characters, where xx is the major version number, y is the
    5656       minor version number, and z is the maintenance number (Azureus-style) */
    57     snprintf( h->id, sizeof h->id, "-TR%02d%01d%01d-",
    58               VERSION_MAJOR, VERSION_MINOR, VERSION_MAINTENANCE );
    59     for( i = 8; i < TR_ID_LEN; i++ )
     57    snprintf( h->id, sizeof h->id, "-TR%06d-", VERSION_REVISION );
     58
     59    for( i = 10; i < TR_ID_LEN; i++ )
    6060    {
    6161        r        = tr_rand( 36 );
    6262        h->id[i] = ( r < 26 ) ? ( 'a' + r ) : ( '0' + r - 26 ) ;
    6363    }
     64    tr_dbg( "Transmission ID is [%s]", h->id );
    6465
    6566    /* Random key */
Note: See TracChangeset for help on using the changeset viewer.