1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-23 14:40:43 +00:00

(trunk libT) #3687 "The V=XXXX key/val pair in our DHT messages seems to have no purpose" -- removed.

This commit is contained in:
Charles Kerr 2010-10-30 01:48:45 +00:00
parent 0fcc5845d9
commit 8e548aafcb

View file

@ -58,7 +58,6 @@ THE SOFTWARE.
#include "tr-dht.h" #include "tr-dht.h"
#include "trevent.h" /* tr_runInEventThread() */ #include "trevent.h" /* tr_runInEventThread() */
#include "utils.h" #include "utils.h"
#include "version.h"
static int dht_socket = -1, dht6_socket = -1; static int dht_socket = -1, dht6_socket = -1;
static struct event dht_event, dht6_event; static struct event dht_event, dht6_event;
@ -325,7 +324,6 @@ tr_dhtInit(tr_session *ss, const tr_address * tr_addr)
uint8_t * nodes = NULL, * nodes6 = NULL; uint8_t * nodes = NULL, * nodes6 = NULL;
const uint8_t * raw; const uint8_t * raw;
size_t len, len6; size_t len, len6;
char v[5];
struct bootstrap_closure * cl; struct bootstrap_closure * cl;
if( session ) /* already initialized */ if( session ) /* already initialized */
@ -387,12 +385,8 @@ tr_dhtInit(tr_session *ss, const tr_address * tr_addr)
tr_cryptoRandBuf( myid, 20 ); tr_cryptoRandBuf( myid, 20 );
} }
v[0] = 'T'; rc = dht_init( dht_socket, dht6_socket, myid, NULL );
v[1] = 'R'; if( rc < 0 )
v[2] = MAJOR_VERSION;
v[3] = MINOR_VERSION;
rc = dht_init( dht_socket, dht6_socket, myid, (const unsigned char*)v );
if(rc < 0)
goto fail; goto fail;
session = ss; session = ss;