[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Remove a piece of disabled code in choose_random_entry_impl().
commit 115b3e76459cc24e0e0081eb76f1259063e327e7
Author: George Kadianakis <desnacked@xxxxxxxxxx>
Date: Mon Jun 9 17:39:21 2014 +0100
Remove a piece of disabled code in choose_random_entry_impl().
---
src/or/entrynodes.c | 16 ----------------
1 file changed, 16 deletions(-)
diff --git a/src/or/entrynodes.c b/src/or/entrynodes.c
index 957217a..f2709fb 100644
--- a/src/or/entrynodes.c
+++ b/src/or/entrynodes.c
@@ -1049,22 +1049,6 @@ choose_random_entry_impl(cpath_build_state_t *state, int for_directory,
if (dirinfo_type != NO_DIRINFO &&
!node_can_handle_dirinfo(node, dirinfo_type))
continue; /* this node won't be able to answer our dir questions */
-#if 0 /* since EntryNodes is always strict now, this clause is moot */
- if (options->EntryNodes &&
- !routerset_contains_node(options->EntryNodes, node)) {
- /* We've come to the end of our preferred entry nodes. */
- if (smartlist_len(live_entry_guards))
- goto choose_and_finish; /* only choose from the ones we like */
- if (options->StrictNodes) {
- /* in theory this case should never happen, since
- * entry_guards_set_from_config() drops unwanted relays */
- tor_fragile_assert();
- } else {
- log_info(LD_CIRC,
- "No relays from EntryNodes available. Using others.");
- }
- }
-#endif
smartlist_add(live_entry_guards, (void*)node);
if (!entry->made_contact) {
/* Always start with the first not-yet-contacted entry
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits