mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
oops, we were ignoring options->ExcludeNodes when picking entry guards.
it is still the case that we ignore it with respect to entry guards that we've already picked. svn:r6726
This commit is contained in:
parent
4fc7426b93
commit
98c6bf6192
@ -1574,6 +1574,7 @@ choose_good_entry_server(uint8_t purpose, cpath_build_state_t *state)
|
||||
}
|
||||
|
||||
excluded = smartlist_create();
|
||||
add_nickname_list_to_smartlist(excluded,options->ExcludeNodes,0,0,1);
|
||||
|
||||
if (state && (r = build_state_get_exit_router(state))) {
|
||||
smartlist_add(excluded, r);
|
||||
|
@ -808,6 +808,12 @@ options_act(or_options_t *old_options)
|
||||
!opt_streq(old_options->EntryNodes, options->EntryNodes)))
|
||||
entry_nodes_should_be_added();
|
||||
|
||||
/* If the user wants to avoid certain nodes, make sure none of them
|
||||
* are already entryguards */
|
||||
if (options->ExcludeNodes) {
|
||||
// XXX TODO
|
||||
}
|
||||
|
||||
/* Since our options changed, we might need to regenerate and upload our
|
||||
* server descriptor.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user