Ignore:
Timestamp:
Mar 26, 2007, 7:19:33 PM (15 years ago)
Author:
joshe
Message:

Don't save or load cached peers for private torrents.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer.c

    r1579 r1594  
    224224void tr_peerSetPrivate( tr_peer_t * peer, int private )
    225225{
     226    if( peer->private == private )
     227    {
     228        return;
     229    }
     230
    226231    peer->private = private;
     232
     233    if( !private )
     234    {
     235        peer->lastPex = 0;
     236    }
     237
     238    if( EXTENDED_HANDSHAKE == peer->extStatus )
     239    {
     240        sendExtended( peer->tor, peer, EXTENDED_HANDSHAKE_ID );
     241    }
    227242}
    228243
Note: See TracChangeset for help on using the changeset viewer.