From 237a7c6b71a9d8209370f210b29b6b26ebf62e28 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Tue, 2 Jan 2007 03:46:47 +0000 Subject: [PATCH] better tornado-style client identification --- libtransmission/clients.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libtransmission/clients.c b/libtransmission/clients.c index cfe7b31f5..200968e32 100644 --- a/libtransmission/clients.c +++ b/libtransmission/clients.c @@ -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' ) {