diff options
author | teor <teor2345@gmail.com> | 2016-11-30 11:06:36 +1100 |
---|---|---|
committer | teor <teor2345@gmail.com> | 2016-11-30 11:06:36 +1100 |
commit | e5c608e535ef9a4c4fe951a277e3891c77de4908 (patch) | |
tree | b3c9f04fdd2d60f2d6b5172a68f12479c2203add /src/or/dirserv.c | |
parent | 4614f8e6816d559f8fbe9ae0f42d751d3fb95c77 (diff) | |
download | tor-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/dirserv.c')
-rw-r--r-- | src/or/dirserv.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c index 7ff37b4c62..57ef1b1937 100644 --- a/src/or/dirserv.c +++ b/src/or/dirserv.c @@ -1078,11 +1078,14 @@ directory_caches_unknown_auth_certs(const or_options_t *options) return dir_server_mode(options) || options->BridgeRelay; } -/** Return 1 if we want to keep descriptors, networkstatuses, etc around. +/** Return 1 if we want to fetch and serve descriptors, networkstatuses, etc * Else return 0. * Check options->DirPort_set and directory_permits_begindir_requests() * to see if we are willing to serve these directory documents to others via * the DirPort and begindir-over-ORPort, respectively. + * + * To check if we should fetch documents, use we_want_to_fetch_flavor and + * we_want_to_fetch_unknown_auth_certs instead of this function. */ int directory_caches_dir_info(const or_options_t *options) |