diff options
author | Roger Dingledine <arma@torproject.org> | 2006-03-15 00:10:13 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2006-03-15 00:10:13 +0000 |
commit | 903183ea28726dd51af89c6e661dafc82099eaed (patch) | |
tree | 29155705c56b5be336d09c3239a60c136fc82766 /src/or/main.c | |
parent | a4ec555228153801a1b866a1eb93c633b391a88e (diff) | |
download | tor-903183ea28726dd51af89c6e661dafc82099eaed.tar.gz tor-903183ea28726dd51af89c6e661dafc82099eaed.zip |
if we as a directory mirror don't know of any v1 directory
authorities, then don't try to cache any v1 directories.
svn:r6162
Diffstat (limited to 'src/or/main.c')
-rw-r--r-- | src/or/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/main.c b/src/or/main.c index 0fe663b193..c961d3414d 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -826,7 +826,8 @@ run_scheduled_events(time_t now) if (options->DirPort && !options->V1AuthoritativeDir) { /* XXX actually, we should only do this if we want to advertise * our dirport. not simply if we configured one. -RD */ - directory_get_from_dirserver(DIR_PURPOSE_FETCH_DIR, NULL, 1); + if (any_trusted_dir_supports_v1()) + directory_get_from_dirserver(DIR_PURPOSE_FETCH_DIR, NULL, 1); } time_to_fetch_directory = now + get_dir_fetch_period(options); |