Browse Source

Add a missing ! to the check for CountPrivatebandwidth.

Nick Mathewson 14 years ago
parent
commit
f6cc8f0ee3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/or/connection.c

+ 1 - 1
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 */