Ignore:
Timestamp:
Oct 14, 2007, 5:21:24 PM (15 years ago)
Author:
charles
Message:

Fix bug that could initiate pex in private torrents.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-mgr.c

    r3395 r3411  
    15061506        const int clientIsSeed = tr_cpGetStatus( tor->completion ) != TR_CP_INCOMPLETE;
    15071507        const int peerIsSeed = atom->flags & ADDED_F_SEED_FLAG;
    1508         if( peerIsSeed && clientIsSeed && ( tor->pexDisabled || (now-atom->time>=30) ) ) {
     1508        if( peerIsSeed && clientIsSeed && ( !tr_torrentIsPexEnabled(tor) || (now-atom->time>=30) ) ) {
    15091509            tordbg( t, "purging peer %s because we're both seeds", tr_peerIoAddrStr(&atom->addr,atom->port) );
    15101510            return TRUE;
     
    16031603
    16041604        /* if we used this peer recently, give someone else a turn */
    1605         if( ( now - atom->time ) < 60 ) {
     1605        if( ( now - atom->time ) < 180 ) {
    16061606            tordbg( t, "RECONNECT peer %d (%s) is in its grace period..",
    16071607                    i, tr_peerIoAddrStr(&atom->addr,atom->port) );
Note: See TracChangeset for help on using the changeset viewer.