[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Add a missing ! to the check for CountPrivatebandwidth.



commit f6cc8f0ee31d09bc082752d90d72c696cbfa45d0
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Wed Apr 6 15:24:44 2011 -0400

    Add a missing ! to the check for CountPrivatebandwidth.
---
 src/or/connection.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/or/connection.c b/src/or/connection.c
index 33f9af6..8b48b96 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 */

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits