mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Merge remote-tracking branch 'tor-gitlab/mr/338'
This commit is contained in:
@@ -550,6 +550,7 @@ static const config_var_t option_vars_[] = {
|
||||
V(MaxUnparseableDescSizeToLog, MEMUNIT, "10 MB"),
|
||||
VPORT(MetricsPort),
|
||||
V(MetricsPortPolicy, LINELIST, NULL),
|
||||
V(TestingMinTimeToReportBandwidth, INTERVAL, "1 day"),
|
||||
VAR("MyFamily", LINELIST, MyFamily_lines, NULL),
|
||||
V(NewCircuitPeriod, INTERVAL, "30 seconds"),
|
||||
OBSOLETE("NamingAuthoritativeDirectory"),
|
||||
@@ -3980,6 +3981,7 @@ options_validate_cb(const void *old_options_, void *options_, char **msg)
|
||||
CHECK_DEFAULT(TestingSigningKeySlop);
|
||||
CHECK_DEFAULT(TestingAuthKeySlop);
|
||||
CHECK_DEFAULT(TestingLinkKeySlop);
|
||||
CHECK_DEFAULT(TestingMinTimeToReportBandwidth);
|
||||
or_options_free(dflt_options);
|
||||
}
|
||||
#undef CHECK_DEFAULT
|
||||
|
||||
@@ -1060,6 +1060,10 @@ struct or_options_t {
|
||||
/** List of policy allowed to query the Metrics port. */
|
||||
struct config_line_t *MetricsPortPolicy;
|
||||
|
||||
/** How far must we be into the current bandwidth-measurement period to
|
||||
* report bandwidth observations from this period? */
|
||||
int TestingMinTimeToReportBandwidth;
|
||||
|
||||
/**
|
||||
* Configuration objects for individual modules.
|
||||
*
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
{ "TestingV3AuthInitialDistDelay", "20 seconds" },
|
||||
{ "TestingAuthDirTimeToLearnReachability", "0 minutes" },
|
||||
{ "MinUptimeHidServDirectoryV2", "0 minutes" },
|
||||
{ "TestingMinTimeToReportBandwidth", "0 seconds" },
|
||||
{ "TestingServerDownloadInitialDelay", "0" },
|
||||
{ "TestingClientDownloadInitialDelay", "0" },
|
||||
{ "TestingServerConsensusDownloadInitialDelay", "0" },
|
||||
|
||||
Reference in New Issue
Block a user