summaryrefslogtreecommitdiff
path: root/src/or/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/main.c')
-rw-r--r--src/or/main.c3
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);