diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-04-28 10:05:32 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-04-28 21:06:07 -0400 |
commit | cd42ae71850985ed8dd34ae73dc6265a643fcb13 (patch) | |
tree | 817a5ce16100a1d049328dd6b450d608ec215e28 /src/or/networkstatus.c | |
parent | 0130e7c9d2842ad58e1b84829aeab16a2efba3bb (diff) | |
download | tor-cd42ae71850985ed8dd34ae73dc6265a643fcb13.tar.gz tor-cd42ae71850985ed8dd34ae73dc6265a643fcb13.zip |
Only authorities should automatically download v2 networkstatus documents
Clients and relays haven't used them since early 0.2.0.x. The only
remaining use by authorities learning about new relays ahead of scedule;
see proposal 147 for what we intend to do about that.
We're leaving in an option (FetchV2Networkstatus) to manually fetch v2
networkstatuses, because apparently dnsel and maybe bwauth want them.
This fixes bug 3022.
Diffstat (limited to 'src/or/networkstatus.c')
-rw-r--r-- | src/or/networkstatus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c index 4f6fe15409..a50d3ca070 100644 --- a/src/or/networkstatus.c +++ b/src/or/networkstatus.c @@ -1356,7 +1356,7 @@ update_networkstatus_downloads(time_t now) or_options_t *options = get_options(); if (should_delay_dir_fetches(options)) return; - if (directory_fetches_dir_info_early(options)) + if (authdir_mode_any_main(options) || options->FetchV2Networkstatus) update_v2_networkstatus_cache_downloads(now); update_consensus_networkstatus_downloads(now); update_certificate_downloads(now); |