mirror of
https://github.com/transmission/transmission
synced 2025-03-12 07:03:44 +00:00
ctorrent client id
This commit is contained in:
parent
38b97ccf13
commit
4b44da5a8c
1 changed files with 6 additions and 0 deletions
|
@ -101,6 +101,12 @@ char * tr_clientForId( uint8_t * id )
|
|||
asprintf( &ret, "Electric Sheep %c.%c.%c",
|
||||
id[3], id[4], id[5] );
|
||||
}
|
||||
else if( !memcmp( &id[1], "CD", 2 ) )
|
||||
{
|
||||
asprintf( &ret, "CTorrent %d.%d",
|
||||
charToInt( id[3] ) * 10 + charToInt( id[4] ),
|
||||
charToInt( id[5] ) * 10 + charToInt( id[6] ) );
|
||||
}
|
||||
}
|
||||
else if( !memcmp( &id[4], "----", 4 ) || !memcmp( &id[4], "--00", 4 ) )
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue