Changeset 3832


Ignore:
Timestamp:
Nov 16, 2007, 4:42:51 AM (14 years ago)
Author:
charles
Message:

if we haven't advertised that we support pex, then even if a peer sends us a pex message, don't send one back.

File:
1 edited

Legend:

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

    r3825 r3832  
    736736    dbgmsg( msgs, "here is the ltep handshake we sent:" );
    737737    tr_bencPrint( &val );
     738    dbgmsg( msgs, "here is the ltep handshake we read [%s]:", tr_bencSave( &val, NULL ) );
    738739#endif
    739740
     
    762763    dbgmsg( msgs, "here is the ltep handshake we read:" );
    763764    tr_bencPrint( &val );
     765    dbgmsg( msgs, "here is the ltep handshake we read [%s]:", tr_bencSave( &val, NULL ) );
    764766#endif
    765767
     
    840842        dbgmsg( msgs, "got ltep handshake" );
    841843        parseLtepHandshake( msgs, msglen, inbuf );
    842         sendLtepHandshake( msgs );
    843         sendPex( msgs );
     844        if( tr_peerIoSupportsLTEP( msgs->io ) )
     845        {
     846            sendLtepHandshake( msgs );
     847            sendPex( msgs );
     848        }
    844849    }
    845850    else if( ltep_msgid == msgs->ut_pex_id )
Note: See TracChangeset for help on using the changeset viewer.