diff options
Diffstat (limited to 'src/or/routerparse.c')
-rw-r--r-- | src/or/routerparse.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c index 5c2cd28f82..ca7d6ed5d3 100644 --- a/src/or/routerparse.c +++ b/src/or/routerparse.c @@ -389,7 +389,8 @@ router_parse_routerlist_from_directory(const char *str, /* Now that we know the signature is okay, and we have a * publication time, cache the directory. */ - dirserv_set_cached_directory(str, published_on, 0); + if (!get_options()->AuthoritativeDir) + dirserv_set_cached_directory(str, published_on, 0); if (!(tok = find_first_by_keyword(tokens, K_RECOMMENDED_SOFTWARE))) { log_fn(LOG_WARN, "Missing recommended-software line from directory."); @@ -515,7 +516,8 @@ router_parse_runningrouters(const char *str) /* Now that we know the signature is okay, and we have a * publication time, cache the list. */ - dirserv_set_cached_directory(str, published_on, 1); + if (!get_options()->AuthoritativeDir) + dirserv_set_cached_directory(str, published_on, 1); if (!(tok = find_first_by_keyword(tokens, K_ROUTER_STATUS))) { if (!(tok = find_first_by_keyword(tokens, K_RUNNING_ROUTERS))) { |