mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
Add a missing ! to the check for CountPrivatebandwidth.
This commit is contained in:
parent
1a49fdecf8
commit
f6cc8f0ee3
@ -1956,7 +1956,7 @@ connection_is_rate_limited(connection_t *conn)
|
||||
or_options_t *options = get_options();
|
||||
if (conn->linked)
|
||||
return 0; /* Internal connection */
|
||||
else if (options->CountPrivateBandwidth &&
|
||||
else if (! options->CountPrivateBandwidth &&
|
||||
(tor_addr_family(&conn->addr) == AF_UNSPEC || /* no address */
|
||||
tor_addr_is_internal(&conn->addr, 0)))
|
||||
return 0; /* Internal address */
|
||||
|
Loading…
Reference in New Issue
Block a user