mirror of
https://github.com/transmission/transmission
synced 2025-03-12 15:14:12 +00:00
the display of our own client's peer-id has to be 100% accurate
This commit is contained in:
parent
3eaac2e16b
commit
c62f45a67b
1 changed files with 3 additions and 2 deletions
|
@ -140,8 +140,9 @@ tr_clientForId( char * buf, size_t buflen, const void * id_in )
|
|||
snprintf( buf, buflen, "Transmission 0.%c", id[6] );
|
||||
else if( !memcmp( id+3, "00", 2) ) /* previous client style: -TR0072- is 0.72 */
|
||||
snprintf( buf, buflen, "Transmission 0.%02d", strint(id+5,2) );
|
||||
else /* current client style: -TR072Z- is 0.72 (Dev) */
|
||||
snprintf( buf, buflen, "Transmission %d.%02d%s", strint(id+3,1), strint(id+4,2), getMnemonicEnd(id[6]) );
|
||||
else /* current client style: -TR111Z- is 1.11+ */
|
||||
snprintf( buf, buflen, "Transmission %d.%02d%s", strint(id+3,1), strint(id+4,2),
|
||||
id[6]=='Z' || id[6]=='X' ? "+" : "" );
|
||||
}
|
||||
|
||||
else if( !memcmp( id+1, "KT", 2 ) )
|
||||
|
|
Loading…
Add table
Reference in a new issue