diff options
author | Roger Dingledine <arma@torproject.org> | 2007-12-20 06:47:59 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2007-12-20 06:47:59 +0000 |
commit | f0e7c4f0da87901584b4b03e7b50157ce607b88e (patch) | |
tree | 7f76e6f37f14f82132ef1b89ea946d990503c413 /src/or/routerparse.c | |
parent | acd8bc1fd92e71c25570c161f0b3b9b1f4b766a7 (diff) | |
download | tor-f0e7c4f0da87901584b4b03e7b50157ce607b88e.tar.gz tor-f0e7c4f0da87901584b4b03e7b50157ce607b88e.zip |
Only Tors that want to mirror the v2 directory info should
create the "cached-status" directory in their datadir. All Tors
used to create it. Bugfix on 0.1.2.x.
Bridge relays with DirPort set to 0 no longer cache v1 or v2
directory information; there's no point. Bugfix on trunk.
svn:r12887
Diffstat (limited to 'src/or/routerparse.c')
-rw-r--r-- | src/or/routerparse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c index afdd9dc158..e6d60c9c78 100644 --- a/src/or/routerparse.c +++ b/src/or/routerparse.c @@ -687,7 +687,7 @@ router_parse_directory(const char *str) /* Now that we know the signature is okay, and we have a * publication time, cache the directory. */ - if (directory_caches_dir_info(get_options()) && + if (directory_caches_v1_dir_info(get_options()) && !authdir_mode_v1(get_options())) dirserv_set_cached_directory(str, published_on, 0); |