~ubuntu-branches/ubuntu/precise/transmission/precise

« back to all changes in this revision

Viewing changes to libtransmission/handshake.c

  • Committer: Bazaar Package Importer
  • Author(s): Leo Costela
  • Date: 2009-07-25 20:20:23 UTC
  • mfrom: (1.3.1 upstream)
  • mto: (2.1.19 sid)
  • mto: This revision was merged to the branch mainline in revision 54.
  • Revision ID: james.westby@ubuntu.com-20090725202023-9xmfycsfotr430nv
* debian/rules: patch before configure
* debian/patches: add patch to not build libevent, regardless of
  linking (really, really closes: #537868)
* debian/changelog: fix dates

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 * This exemption does not extend to derived works not owned by
8
8
 * the Transmission project.
9
9
 *
10
 
 * $Id: handshake.c 8698 2009-06-15 03:24:40Z charles $
 
10
 * $Id: handshake.c 8767 2009-07-01 14:58:57Z charles $
11
11
 */
12
12
 
13
13
#include <assert.h>
20
20
#include <event.h>
21
21
 
22
22
#include "transmission.h"
23
 
#include "session.h"
24
23
#include "bencode.h"
25
24
#include "clients.h"
26
25
#include "crypto.h"
27
26
#include "handshake.h"
28
27
#include "peer-io.h"
29
28
#include "peer-mgr.h"
 
29
#include "session.h"
30
30
#include "torrent.h"
31
31
#include "tr-dht.h"
32
32
#include "utils.h"
313
313
    tr_peerIoEnableFEXT( handshake->io, HANDSHAKE_HAS_FASTEXT( reserved ) );
314
314
 
315
315
    /* This doesn't depend on whether the torrent is private. */
316
 
    if( tor && tor->session->isDHTEnabled )
 
316
    if( tor && tr_sessionAllowsDHT( tor->session ) )
317
317
        tr_peerIoEnableDHT( handshake->io, HANDSHAKE_HAS_DHT( reserved ) );
318
318
 
319
319
    return HANDSHAKE_OK;