(trunk libT) "DHT and blocklists are incompatible" -- revert r12544.
authorJordan Lee <jordan@transmissionbt.com>
Fri, 22 Jul 2011 17:47:08 +0000 (17:47 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Fri, 22 Jul 2011 17:47:08 +0000 (17:47 +0000)
libtransmission/tr-udp.c

index a0d7a671f62fdd1e528f3c6298137844c0fe2c0f..5cd1c0a7eaed58a999a9c65cb2d83274075404cc 100644 (file)
@@ -192,8 +192,6 @@ event_callback(int s, short type UNUSED, void *sv)
     unsigned char buf[4096];
     struct sockaddr_storage from;
     tr_session *ss = sv;
-    tr_address addr;
-    tr_port port;
 
     assert(tr_isSession(sv));
     assert(type == EV_READ);
@@ -202,11 +200,6 @@ event_callback(int s, short type UNUSED, void *sv)
     rc = recvfrom(s, buf, 4096 - 1, 0,
                   (struct sockaddr*)&from, &fromlen);
 
-    /* don't process messages from blocked addresses */
-    if( !tr_address_from_sockaddr_storage( &addr, &port, &from )
-            || tr_sessionIsAddressBlocked( ss, &addr ) )
-        return;
-
     /* Since most packets we receive here are ÂµTP, make quick inline
        checks for the other protocols.  The logic is as follows:
        - all DHT packets start with 'd';