1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-27 01:57:52 +00:00

add BitTorrent DNA to clients

This commit is contained in:
Mitchell Livingston 2007-08-06 21:34:38 +00:00
parent d9edd4b84c
commit 0ec5461b50

View file

@ -334,6 +334,11 @@ char * tr_clientForId( uint8_t * id )
charToInt( id[3] ) * 10 + charToInt( id[4] ), charToInt( id[3] ) * 10 + charToInt( id[4] ),
id[5], id[6] ); id[5], id[6] );
} }
else if( !memcmp( id, "DNA", 3 ) )
{
asprintf( &ret, "BitTorrent DNA %d.%d.%d", charToInt( id[3] ) * 10 + charToInt( id[4] ),
charToInt( id[5] ) * 10 + charToInt( id[6] ), charToInt( id[7] ) * 10 + charToInt( id[8] ) );
}
else if( !memcmp( id, "Plus", 4 ) ) else if( !memcmp( id, "Plus", 4 ) )
{ {
asprintf( &ret, "Plus! v2 %c.%c%c", id[4], id[5], id[6] ); asprintf( &ret, "Plus! v2 %c.%c%c", id[4], id[5], id[6] );