mirror of
https://github.com/transmission/transmission
synced 2025-02-20 21:26:53 +00:00
(trunk libT) "DHT and blocklists are incompatible" -- revert r12544.
This commit is contained in:
parent
2da9a2e03c
commit
5076efd20e
1 changed files with 0 additions and 7 deletions
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue