From ec55cf526dc7707cca7588718ba1f99c1fe0a7f0 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 18 May 2007 21:19:19 +0000 Subject: 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 --- src/or/config.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/or/config.c') 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) -- cgit v1.2.3-54-g00ecf