summaryrefslogtreecommitdiff
path: root/src/or/connection.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-04-06 15:24:44 -0400
committerNick Mathewson <nickm@torproject.org>2011-04-06 15:24:44 -0400
commitf6cc8f0ee31d09bc082752d90d72c696cbfa45d0 (patch)
treea59ad8e84368348e872fb9bcaeddaa54092733d8 /src/or/connection.c
parent1a49fdecf89c44cb4b2975caf5a22b16f15a2a83 (diff)
downloadtor-f6cc8f0ee31d09bc082752d90d72c696cbfa45d0.tar.gz
tor-f6cc8f0ee31d09bc082752d90d72c696cbfa45d0.zip
Add a missing ! to the check for CountPrivatebandwidth.
Diffstat (limited to 'src/or/connection.c')
-rw-r--r--src/or/connection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index 33f9af6f4f..8b48b96dc1 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -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 */