]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
choose helper nodes to have high capacity always
authorRoger Dingledine <arma@torproject.org>
Sun, 11 Dec 2005 11:20:01 +0000 (11:20 +0000)
committerRoger Dingledine <arma@torproject.org>
Sun, 11 Dec 2005 11:20:01 +0000 (11:20 +0000)
svn:r5563

src/or/circuitbuild.c

index f3b27153ab1e002e0355d2b9a21ed0fcb8ae64a0..cc4082b7296cfd9172b9dd8bf3feade6e6440257 100644 (file)
@@ -1503,7 +1503,7 @@ choose_good_entry_server(cpath_build_state_t *state)
   // but only if there are enough other nodes available.
   choice = router_choose_random_node(options->EntryNodes, options->ExcludeNodes,
            excluded, state ? state->need_uptime : 1,
-           state ? state->need_capacity : 0,
+           state ? state->need_capacity : 1,
            options->_AllowUnverified & ALLOW_UNVERIFIED_ENTRY,
            options->StrictEntryNodes);
   smartlist_free(excluded);