choose helper nodes to have high capacity always

svn:r5563
This commit is contained in:
Roger Dingledine 2005-12-11 11:20:01 +00:00
parent 77c0f6d456
commit b974f67c01

View file

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