Changeset 11953


Ignore:
Timestamp:
Feb 18, 2011, 12:43:39 AM (12 years ago)
Author:
jch
Message:

Clear utp_failed flag upon seeing an announcement for ut_holepunch.

File:
1 edited

Legend:

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

    r11951 r11953  
    939939            msgs->ut_metadata_id = (uint8_t) i;
    940940            dbgmsg( msgs, "msgs->ut_metadata_id is %d", (int)msgs->ut_metadata_id );
     941        }
     942        if( tr_bencDictFindInt( sub, "ut_holepunch", &i ) ) {
     943            /* Mysterious µTorrent extension that we don't grok.  However,
     944               it implies support for µTP, so use it to indicate that. */
     945            tr_peerMgrSetUtpFailed( msgs->torrent,
     946                                    tr_peerIoGetAddress( msgs->peer->io, NULL ),
     947                                    FALSE );
    941948        }
    942949    }
Note: See TracChangeset for help on using the changeset viewer.