mirror of
https://github.com/transmission/transmission
synced 2024-12-25 01:03:01 +00:00
JVTorrent client id
This commit is contained in:
parent
3d787a7e77
commit
9c87aad53c
1 changed files with 7 additions and 1 deletions
|
@ -121,7 +121,7 @@ char * tr_clientForId( uint8_t * id )
|
|||
}
|
||||
}
|
||||
|
||||
/* Different formatting per client */
|
||||
/* Tornado-style */
|
||||
if( !memcmp( &id[4], "----", 4 ) || !memcmp( &id[4], "--00", 4 ) )
|
||||
{
|
||||
if( id[0] == 'T' )
|
||||
|
@ -140,6 +140,8 @@ char * tr_clientForId( uint8_t * id )
|
|||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
/* Different formatting per client */
|
||||
if( id[0] == 'M' && id[2] == '-' && id[7] == '-' )
|
||||
{
|
||||
if( id[4] == '-' && id[6] == '-' )
|
||||
|
@ -202,6 +204,10 @@ char * tr_clientForId( uint8_t * id )
|
|||
{
|
||||
asprintf( &ret, "G3 Torrent" );
|
||||
}
|
||||
else if( !memcmp( id, "10-------", 9 ) )
|
||||
{
|
||||
asprintf( &ret, "JVtorrent" );
|
||||
}
|
||||
|
||||
/* No match */
|
||||
if( !ret )
|
||||
|
|
Loading…
Reference in a new issue