diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-05-18 21:19:19 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-05-18 21:19:19 +0000 |
commit | ec55cf526dc7707cca7588718ba1f99c1fe0a7f0 (patch) | |
tree | 890940702217c6c11753950eefafbaf923bf04dc /src/or/config.c | |
parent | a18770487227bce6e356f169aa86bdef70370c76 (diff) | |
download | tor-ec55cf526dc7707cca7588718ba1f99c1fe0a7f0.tar.gz tor-ec55cf526dc7707cca7588718ba1f99c1fe0a7f0.zip |
r12981@Kushana: nickm | 2007-05-18 14:12:19 -0400
First cut at code to download extra-info docs. Also note a bad bug in directory.c (look for the string BUG BUG BUG).
svn:r10209
Diffstat (limited to 'src/or/config.c')
-rw-r--r-- | src/or/config.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c index 7b6fa169dd..bed3ff9ad2 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -155,6 +155,7 @@ static config_var_t _option_vars[] = { VAR("DirPort", UINT, DirPort, "0"), OBSOLETE("DirPostPeriod"), VAR("DirServer", LINELIST, DirServers, NULL), + VAR("DownloadExtraInfo", BOOL, DownloadExtraInfo, "0"), VAR("EnforceDistinctSubnets", BOOL, EnforceDistinctSubnets,"1"), VAR("EntryNodes", STRING, EntryNodes, NULL), VAR("ExcludeNodes", STRING, ExcludeNodes, NULL), @@ -2555,6 +2556,11 @@ options_validate(or_options_t *old_options, or_options_t *options, "UseEntryGuards. Disabling."); options->UseEntryGuards = 0; } + if (!options->DownloadExtraInfo) { + log_info(LD_CONFIG, "Authoritative directories always try to download " + "extra-info documents. Setting DownloadExtraInfo."); + options->DownloadExtraInfo = 1; + } } if (options->AuthoritativeDir && !options->DirPort) |