Ignore:
Timestamp:
Aug 10, 2007, 6:06:52 PM (14 years ago)
Author:
livings124
Message:

identify a client's peer id correctly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/clients.c

    r2641 r2713  
    111111        else if( !memcmp( &id[1], "XX", 2 ) )
    112112        {
    113             asprintf( &ret, "Xtorrent (%d)",
    114                       charToInt( id[3] ) * 1000 + charToInt( id[4] ) * 100
    115                       + charToInt( id[5] ) * 10 + charToInt( id[6] ) );
     113            asprintf( &ret, "Xtorrent %c.%c (%d)",
     114                      id[3], id[4], charToInt( id[5] ) * 10 + charToInt( id[6] ) );
    116115        }
    117116        else if( !memcmp( &id[1], "TS", 2 ) )
Note: See TracChangeset for help on using the changeset viewer.