(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
1 changed files with 2 additions and 8 deletions

View File

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