mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01:00
identify a client's peer id correctly
This commit is contained in:
@@ -110,9 +110,8 @@ char * tr_clientForId( uint8_t * id )
|
||||
}
|
||||
else if( !memcmp( &id[1], "XX", 2 ) )
|
||||
{
|
||||
asprintf( &ret, "Xtorrent (%d)",
|
||||
charToInt( id[3] ) * 1000 + charToInt( id[4] ) * 100
|
||||
+ charToInt( id[5] ) * 10 + charToInt( id[6] ) );
|
||||
asprintf( &ret, "Xtorrent %c.%c (%d)",
|
||||
id[3], id[4], charToInt( id[5] ) * 10 + charToInt( id[6] ) );
|
||||
}
|
||||
else if( !memcmp( &id[1], "TS", 2 ) )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user