Changeset 3929


Ignore:
Timestamp:
Nov 22, 2007, 6:48:08 AM (15 years ago)
Author:
charles
Message:

fix LTEP PEX error reported by Adrian Ulrich in the BitTorrent? mailing list

File:
1 edited

Legend:

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

    r3921 r3929  
    6262    LTEP_HANDSHAKE          = 0,
    6363
    64     OUR_LTEP_PEX            = 1,
     64    TR_LTEP_PEX             = 1,
    6565
    6666    MAX_REQUEST_BYTE_COUNT  = (16 * 1024), /* drop requests who want too much */
     
    737737    if( pex ) {
    738738        tr_bencDictReserve( m, 1 );
    739         tr_bencInitInt( tr_bencDictAdd( m, "ut_pex" ), OUR_LTEP_PEX );
     739        tr_bencInitInt( tr_bencDictAdd( m, "ut_pex" ), TR_LTEP_PEX );
    740740    }
    741741    if( port > 0 )
     
    861861        }
    862862    }
    863     else if( ltep_msgid == msgs->ut_pex_id )
     863    else if( ltep_msgid == TR_LTEP_PEX )
    864864    {
    865865        dbgmsg( msgs, "got ut pex" );
     
    17431743        tr_peerIoWriteUint32( msgs->io, msgs->outMessages, 2*sizeof(uint8_t) + bencLen );
    17441744        tr_peerIoWriteUint8 ( msgs->io, msgs->outMessages, BT_LTEP );
    1745         tr_peerIoWriteUint8 ( msgs->io, msgs->outMessages, OUR_LTEP_PEX );
     1745        tr_peerIoWriteUint8 ( msgs->io, msgs->outMessages, msgs->ut_pex_id );
    17461746        tr_peerIoWriteBytes ( msgs->io, msgs->outMessages, benc, bencLen );
    17471747
Note: See TracChangeset for help on using the changeset viewer.