Changeset 12587


Ignore:
Timestamp:
Jul 25, 2011, 9:30:46 PM (10 years ago)
Author:
jch
Message:

Add stub for the DHT blacklisting support.

Using blacklists with Kademlia is not a good idea, which is why we
don't support it in Transmission. However, some people insist on
implementing the support in their own copies, this well-defined
hook ensures that at least they'll do it right.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/tr-dht.c

    r12584 r12587  
    661661}
    662662
     663/* This function should return true when a node is blacklisted.  We do
     664   not support using a blacklist with the DHT in Transmission, since
     665   massive (ab)use of this feature could harm the DHT.  However, feel
     666   free to add support to your private copy as long as you don't
     667   redistribute it. */
     668
     669int
     670dht_blacklisted(const struct sockaddr *sa UNUSED, int salen UNUSED)
     671{
     672    return 0;
     673}
    663674
    664675void
Note: See TracChangeset for help on using the changeset viewer.