Changeset 9353


Ignore:
Timestamp:
Oct 22, 2009, 1:03:17 AM (13 years ago)
Author:
charles
Message:

(trunk libT) #2510: port messages not sent for outgoing peer connections

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/handshake.c

    r9273 r9353  
    313313    tr_peerIoEnableFEXT( handshake->io, HANDSHAKE_HAS_FASTEXT( reserved ) );
    314314
    315     /* This doesn't depend on whether the torrent is private. */
     315    /* This is independent of whether or not DHT is actually used.
     316     * it's okay to set this flag even for private torrents */
    316317    if( tor && tr_sessionAllowsDHT( tor->session ) )
    317318        tr_peerIoEnableDHT( handshake->io, HANDSHAKE_HAS_DHT( reserved ) );
     
    674675
    675676    tr_peerIoEnableFEXT( handshake->io, HANDSHAKE_HAS_FASTEXT( reserved ) );
     677
     678    /* This is independent of whether or not DHT is actually used.
     679     * it's okay to set this flag even for private torrents */
     680    if( tr_sessionAllowsDHT( handshake->session ) )
     681        tr_peerIoEnableDHT( handshake->io, HANDSHAKE_HAS_DHT( reserved ) );
    676682
    677683    /* torrent hash */
Note: See TracChangeset for help on using the changeset viewer.