Ignore:
Timestamp:
Dec 5, 2008, 3:55:24 PM (14 years ago)
Author:
charles
Message:

(1.3x libT) backport #1557: handshake peer-id doesn't match the peer-id sent in the tracker announce

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.3x/libtransmission/tracker.c

    r6759 r7282  
    968968    if( t && !t->isRunning )
    969969    {
     970        tr_torrent * tor;
     971
     972        /* change the peer-id */
    970973        tr_free( t->peer_id );
    971974        t->peer_id = tr_peerIdNew( );
     975        if(( tor = tr_torrentFindFromHash( t->session, t->hash ))) {
     976            tr_free( tor->peer_id );
     977            tor->peer_id = (uint8_t*) tr_strdup( t->peer_id );
     978        }
    972979
    973980        t->isRunning = 1;
Note: See TracChangeset for help on using the changeset viewer.