From 2206c22eee2727f3c25c85021455c4f5d657a75d Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Tue, 19 Feb 2008 16:55:13 +0000 Subject: [PATCH] add Amazon S3 to clients list --- NEWS | 2 +- libtransmission/clients.c | 12 +++++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/NEWS b/NEWS index 1d87c2c2a..631e48cd5 100644 --- a/NEWS +++ b/NEWS @@ -5,7 +5,7 @@ NEWS file for Transmission + Removing a transfer will remove the associated cache file - Mac: + Window when adding torrents to select files and other settings - + Leopard: Group dividers + + Leopard: Collapsable group dividers + Use the file icon as the per-torrent action button + Updated images in the inspector + Optional display of remaining time while seeding in Minimal View diff --git a/libtransmission/clients.c b/libtransmission/clients.c index 5099ace6b..b455c994a 100644 --- a/libtransmission/clients.c +++ b/libtransmission/clients.c @@ -251,9 +251,11 @@ char * tr_clientForId( const uint8_t * id ) id[3], id[4], id[5], id[6] ); } else if( !memcmp( &id[1], "NX", 2 ) ) - { - tr_asprintf( &ret, "Net Transport" ); - } + { + tr_asprintf( &ret, "Net Transport %d.%c.%c", + charToInt( id[3] ) * 10 + charToInt( id[4] ), + id[5], id[6] ); + } else if( !memcmp( &id[1], "LW", 2 ) ) { tr_asprintf( &ret, "LimeWire" ); @@ -327,6 +329,10 @@ char * tr_clientForId( const uint8_t * id ) return ret; } } + if( !memcmp( id, "S3", 2 ) && id[2] == '-' && id[4] == '-' && id6] == '-' ) + { + tr_asprintf( &ret, "Amazon S3 %c.%c.%c", id[3], id[5], id[7] ); + } /* All versions of each client are formatted the same */ if( !memcmp( id, "exbc", 4 ) )