1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 01:03:01 +00:00

better tornado-style client identification

This commit is contained in:
Mitchell Livingston 2007-01-02 03:46:47 +00:00
parent 56c4ade75f
commit 237a7c6b71

View file

@ -41,7 +41,7 @@ char * tr_clientForId( uint8_t * id )
{
char * ret = NULL;
/* Azureus style */
/* Azureus-style */
if( id[0] == '-' && id[7] == '-' )
{
if( !memcmp( &id[1], "TR", 2 ) )
@ -138,7 +138,7 @@ char * tr_clientForId( uint8_t * id )
}
/* Tornado-style */
if( !memcmp( &id[4], "----", 4 ) || !memcmp( &id[4], "--00", 4 ) )
if( !memcmp( &id[4], "-----", 5 ) || !memcmp( &id[4], "--0", 3 ) )
{
if( id[0] == 'T' )
{