summaryrefslogtreecommitdiff
path: root/src/or/routerlist.c
diff options
context:
space:
mode:
authorteor <teor2345@gmail.com>2016-11-30 11:06:36 +1100
committerteor <teor2345@gmail.com>2016-11-30 11:06:36 +1100
commite5c608e535ef9a4c4fe951a277e3891c77de4908 (patch)
treeb3c9f04fdd2d60f2d6b5172a68f12479c2203add /src/or/routerlist.c
parent4614f8e6816d559f8fbe9ae0f42d751d3fb95c77 (diff)
downloadtor-e5c608e535ef9a4c4fe951a277e3891c77de4908.tar.gz
tor-e5c608e535ef9a4c4fe951a277e3891c77de4908.zip
Stop discarding consensus flavors and descriptors we wanted to fetch
Instead, fetch and store consensus flavors and descriptors we wanted to fetch. And serve them if we are a directory cache (or authority).
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r--src/or/routerlist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index c99d22ed41..7508c4b1a6 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -5154,7 +5154,7 @@ update_consensus_router_descriptor_downloads(time_t now, int is_vote,
++n_would_reject;
continue; /* We would throw it out immediately. */
}
- if (!directory_caches_dir_info(options) &&
+ if (!we_want_to_fetch_flavor(options, consensus->flavor) &&
!client_would_use_router(rs, now, options)) {
++n_wouldnt_use;
continue; /* We would never use it ourself. */