mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Merge remote-tracking branch 'origin/maint-0.2.2'
Conflicts: src/or/directory.c
This commit is contained in:
@@ -262,6 +262,7 @@ static config_var_t _option_vars[] = {
|
||||
V(FetchServerDescriptors, BOOL, "1"),
|
||||
V(FetchHidServDescriptors, BOOL, "1"),
|
||||
V(FetchUselessDescriptors, BOOL, "0"),
|
||||
V(FetchV2Networkstatus, BOOL, "0"),
|
||||
#ifdef WIN32
|
||||
V(GeoIPFile, FILENAME, "<default>"),
|
||||
#else
|
||||
|
||||
@@ -363,6 +363,7 @@ directory_get_from_dirserver(uint8_t dir_purpose, uint8_t router_purpose,
|
||||
break;
|
||||
case DIR_PURPOSE_FETCH_V2_NETWORKSTATUS:
|
||||
type = V2_DIRINFO;
|
||||
prefer_authority = 1; /* Only v2 authorities have these anyway. */
|
||||
break;
|
||||
case DIR_PURPOSE_FETCH_SERVERDESC:
|
||||
type = (router_purpose == ROUTER_PURPOSE_BRIDGE ? BRIDGE_DIRINFO :
|
||||
|
||||
@@ -1365,7 +1365,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);
|
||||
|
||||
+3
-1
@@ -2655,7 +2655,9 @@ typedef struct {
|
||||
/** Boolean: do we publish hidden service descriptors to the HS auths? */
|
||||
int PublishHidServDescriptors;
|
||||
int FetchServerDescriptors; /**< Do we fetch server descriptors as normal? */
|
||||
int FetchHidServDescriptors; /** and hidden service descriptors? */
|
||||
int FetchHidServDescriptors; /**< and hidden service descriptors? */
|
||||
int FetchV2Networkstatus; /**< Do we fetch v2 networkstatus documents when
|
||||
* we don't need to? */
|
||||
int HidServDirectoryV2; /**< Do we participate in the HS DHT? */
|
||||
|
||||
int MinUptimeHidServDirectoryV2; /**< As directory authority, accept hidden
|
||||
|
||||
Reference in New Issue
Block a user