Changeset 11483


Ignore:
Timestamp:
Dec 5, 2010, 7:03:01 PM (11 years ago)
Author:
charles
Message:

(2.0x libT) backport r11359 for #3687 "The V=XXXX key/val pair in our DHT messages seems to have no purpose"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0x/libtransmission/tr-dht.c

    r10623 r11483  
    5050#include "trevent.h" /* tr_runInEventThread() */
    5151#include "utils.h"
    52 #include "version.h"
    5352
    5453static int dht_socket = -1, dht6_socket = -1;
     
    318317    const uint8_t * raw;
    319318    size_t len, len6;
    320     char v[5];
    321319    struct bootstrap_closure * cl;
    322320
     
    380378    }
    381379
    382     v[0] = 'T';
    383     v[1] = 'R';
    384     v[2] = (SVN_REVISION_NUM >> 8) & 0xFF;
    385     v[3] = SVN_REVISION_NUM & 0xFF;
    386     rc = dht_init( dht_socket, dht6_socket, myid, (const unsigned char*)v );
     380    rc = dht_init( dht_socket, dht6_socket, myid, NULL );
    387381    if(rc < 0)
    388382        goto fail;
Note: See TracChangeset for help on using the changeset viewer.