Ignore:
Timestamp:
Feb 19, 2008, 4:55:13 PM (14 years ago)
Author:
livings124
Message:

add Amazon S3 to clients list

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/clients.c

    r5039 r5079  
    252252        }
    253253        else if( !memcmp( &id[1], "NX", 2 ) )
    254         {
    255             tr_asprintf( &ret, "Net Transport" );
    256         }
     254        {
     255            tr_asprintf( &ret, "Net Transport %d.%c.%c",
     256                      charToInt( id[3] ) * 10 + charToInt( id[4] ),
     257                      id[5], id[6] );
     258        }
    257259        else if( !memcmp( &id[1], "LW", 2 ) )
    258260        {
     
    328330        }
    329331    }
     332    if( !memcmp( id, "S3", 2 ) && id[2] == '-' && id[4] == '-' && id6] == '-' )
     333    {
     334        tr_asprintf( &ret, "Amazon S3 %c.%c.%c", id[3], id[5], id[7] );
     335    }
    330336   
    331337    /* All versions of each client are formatted the same */
Note: See TracChangeset for help on using the changeset viewer.