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:
parent
0fcc5845d9
commit
8e548aafcb
1 changed files with 2 additions and 8 deletions
|
@ -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,11 +385,7 @@ 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';
|
|
||||||
v[2] = MAJOR_VERSION;
|
|
||||||
v[3] = MINOR_VERSION;
|
|
||||||
rc = dht_init( dht_socket, dht6_socket, myid, (const unsigned char*)v );
|
|
||||||
if( rc < 0 )
|
if( rc < 0 )
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue