diff options
author | George Kadianakis <desnacked@riseup.net> | 2014-06-09 17:39:21 +0100 |
---|---|---|
committer | George Kadianakis <desnacked@riseup.net> | 2014-06-15 18:25:45 -0700 |
commit | 115b3e76459cc24e0e0081eb76f1259063e327e7 (patch) | |
tree | aaeef44cfe948a1cab31ede9fbc550f0a15f1ea8 /src/or/entrynodes.c | |
parent | 95d47a74815ede0e4d0296f02db39dca3e0c1b39 (diff) | |
download | tor-115b3e76459cc24e0e0081eb76f1259063e327e7.tar.gz tor-115b3e76459cc24e0e0081eb76f1259063e327e7.zip |
Remove a piece of disabled code in choose_random_entry_impl().
Diffstat (limited to 'src/or/entrynodes.c')
-rw-r--r-- | src/or/entrynodes.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/or/entrynodes.c b/src/or/entrynodes.c index 957217ac6c..f2709fbdd7 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 |