Changeset 11946


Ignore:
Timestamp:
Feb 18, 2011, 12:41:32 AM (11 years ago)
Author:
jordan
Message:

when sending PEX messages, unset the holepunch flag because we don't support holepunch.

File:
1 edited

Legend:

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

    r11945 r11946  
    22482248                tr_free( tmp );
    22492249
    2250                 /* "added.f" */
     2250                /* "added.f"
     2251                 * unset each holepunch flag because we don't support it. */
    22512252                tmp = walk = tr_new( uint8_t, diffs.addedCount );
    22522253                for( i = 0; i < diffs.addedCount; ++i )
    2253                     *walk++ = diffs.added[i].flags;
     2254                    *walk++ = diffs.added[i].flags & ~ADDED_F_HOLEPUNCH;
    22542255                assert( ( walk - tmp ) == diffs.addedCount );
    22552256                tr_bencDictAddRaw( &val, "added.f", tmp, walk - tmp );
     
    22842285                tr_free( tmp );
    22852286
    2286                 /* "added6.f" */
     2287                /* "added6.f"
     2288                 * unset each holepunch flag because we don't support it. */
    22872289                tmp = walk = tr_new( uint8_t, diffs6.addedCount );
    22882290                for( i = 0; i < diffs6.addedCount; ++i )
    2289                     *walk++ = diffs6.added[i].flags;
     2291                    *walk++ = diffs6.added[i].flags & ~ADDED_F_HOLEPUNCH;
    22902292                assert( ( walk - tmp ) == diffs6.addedCount );
    22912293                tr_bencDictAddRaw( &val, "added6.f", tmp, walk - tmp );
Note: See TracChangeset for help on using the changeset viewer.