mirror of
https://github.com/transmission/transmission
synced 2024-12-24 16:52:39 +00:00
add Deluge and another Shareaza format to clients
This commit is contained in:
parent
6ab640c50b
commit
4871222fa5
1 changed files with 7 additions and 1 deletions
|
@ -71,7 +71,7 @@ char * tr_clientForId( uint8_t * id )
|
|||
charToInt( id[3] ) * 10 + charToInt( id[4] ),
|
||||
id[5], id[6] );
|
||||
}
|
||||
else if( !memcmp( &id[1], "SZ", 2 ) )
|
||||
else if( !memcmp( &id[1], "SZ", 2 ) || !memcmp( &id[1], "S~", 2 ) )
|
||||
{
|
||||
asprintf( &ret, "Shareaza %c.%c.%c.%c",
|
||||
id[3], id[4], id[5], id[6] );
|
||||
|
@ -132,6 +132,12 @@ char * tr_clientForId( uint8_t * id )
|
|||
charToInt( id[3] ) * 10 + charToInt( id[4] ),
|
||||
id[5], id[6] );
|
||||
}
|
||||
else if( !memcmp( &id[1], "DE", 2 ) )
|
||||
{
|
||||
asprintf( &ret, "Deluge %d.%d.%d",
|
||||
charToInt( id[3] ), charToInt( id[4] ),
|
||||
charToInt( id[5] ) );
|
||||
}
|
||||
else if( !memcmp( &id[1], "AR", 2 ) )
|
||||
{
|
||||
asprintf( &ret, "Arctic Torrent" );
|
||||
|
|
Loading…
Reference in a new issue