1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 08:43:27 +00:00

identify dev builds of transmission correctly in the peers list

This commit is contained in:
Mitchell Livingston 2007-07-16 21:57:22 +00:00
parent 2f173fd4d4
commit 091a56d4ca
2 changed files with 7 additions and 6 deletions

View file

@ -55,9 +55,9 @@ char * tr_clientForId( uint8_t * id )
}
else
{
asprintf( &ret, "Transmission %d.%c%c",
charToInt( id[3] ) * 10 + charToInt( id[4] ),
id[5], id[6] );
asprintf( &ret, "Transmission %d.%c%c%s",
charToInt( id[3] ), id[4], id[5],
id[6] == 'Z' ? " (dev)" : "" );
}
}
else if( !memcmp( &id[1], "AZ", 2 ) )

View file

@ -28,9 +28,10 @@
#include "net.h"
#include "shared.h"
/* Generate a peer id : "-TRxxyz-" + 12 random alphanumeric
characters, where xx is the major version number, y is the
minor version number, and z is the maintenance number (Azureus-style) */
/* Generate a peer id : "-TRxyzb-" + 12 random alphanumeric
characters, where x is the major version number, y is the
minor version number, z is the maintenance number, and b
designates beta (Azureus-style) */
void
tr_peerIdNew ( char * buf, int buflen )
{