mirror of
https://github.com/transmission/transmission
synced 2024-12-25 01:03:01 +00:00
add queen bee to clients
This commit is contained in:
parent
9041bf4efe
commit
ea9de21173
1 changed files with 11 additions and 0 deletions
|
@ -125,6 +125,17 @@ char * tr_clientForId( uint8_t * id )
|
|||
asprintf( &ret, "BitTorrent %c.%c%c.%c", id[1], id[3], id[4], id[6] );
|
||||
}
|
||||
}
|
||||
else if( id[0] == 'Q' && id[2] == '-' && id[7] == '-' )
|
||||
{
|
||||
if( id[4] == '-' && id[6] == '-' )
|
||||
{
|
||||
asprintf( &ret, "Queen Bee %c.%c.%c", id[1], id[3], id[5] );
|
||||
}
|
||||
else if( id[5] == '-' )
|
||||
{
|
||||
asprintf( &ret, "Queen Bee %c.%c%c.%c", id[1], id[3], id[4], id[6] );
|
||||
}
|
||||
}
|
||||
else if( !memcmp( id, "exbc", 4 ) )
|
||||
{
|
||||
asprintf( &ret, "%s %d.%02d",
|
||||
|
|
Loading…
Reference in a new issue