aboutsummaryrefslogtreecommitdiff
path: root/src/or/routerlist.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-04-28 20:38:50 -0400
committerNick Mathewson <nickm@torproject.org>2011-04-28 20:38:50 -0400
commit9d67d16c6a99c662f0fe81068f66de471b39a616 (patch)
tree27e2381e7221328b7f1aec8f1445d4df9b47f798 /src/or/routerlist.c
parentbb8689b86480d81aa150d5f27fa830afc4de4077 (diff)
parent5693fedb60ee19048d45ed892edb07925b52678b (diff)
downloadtor-9d67d16c6a99c662f0fe81068f66de471b39a616.tar.gz
tor-9d67d16c6a99c662f0fe81068f66de471b39a616.zip
Merge remote-tracking branch 'origin/maint-0.2.2'
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r--src/or/routerlist.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index d5dc478388..aa7ada99d6 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -5796,7 +5796,6 @@ hid_serv_get_responsible_directories(smartlist_t *responsible_dirs,
{
int start, found, n_added = 0, i;
networkstatus_t *c = networkstatus_get_latest_consensus();
- int use_begindir = get_options()->TunnelDirConns;
if (!c || !smartlist_len(c->routerstatus_list)) {
log_warn(LD_REND, "We don't have a consensus, so we can't perform v2 "
"rendezvous operations.");
@@ -5809,14 +5808,9 @@ hid_serv_get_responsible_directories(smartlist_t *responsible_dirs,
do {
routerstatus_t *r = smartlist_get(c->routerstatus_list, i);
if (r->is_hs_dir) {
- if (r->dir_port || use_begindir)
- smartlist_add(responsible_dirs, r);
- else
- log_info(LD_REND, "Not adding router '%s' to list of responsible "
- "hidden service directories, because we have no way of "
- "reaching it.", r->nickname);
+ smartlist_add(responsible_dirs, r);
if (++n_added == REND_NUMBER_OF_CONSECUTIVE_REPLICAS)
- break;
+ return 0;
}
if (++i == smartlist_len(c->routerstatus_list))
i = 0;