Changeset 7438


Ignore:
Timestamp:
Dec 20, 2008, 2:56:44 AM (12 years ago)
Author:
jhujhiti
Message:

(trunk libT) make sure we don't block IPv6 peers, which aren't included in bluetack bocklists

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/blocklist.c

    r7404 r7438  
    2626#include <fcntl.h>
    2727#include <unistd.h>
     28#include <assert.h>
    2829
    2930#include "ggets.h"
     
    207208    const struct tr_ip_range * range;
    208209
    209     if( !b->isEnabled )
     210    assert( tr_isAddress( addr ) );
     211
     212    if( !b->isEnabled || addr->type == TR_AF_INET6 )
    210213        return 0;
    211214
Note: See TracChangeset for help on using the changeset viewer.