|
@@ -218,6 +218,7 @@ static config_var_t option_vars_[] = {
|
|
|
VPORT(DNSPort, LINELIST, NULL),
|
|
|
V(DNSListenAddress, LINELIST, NULL),
|
|
|
V(DownloadExtraInfo, BOOL, "0"),
|
|
|
+ V(TestingEnableConnBwEvent, BOOL, "0"),
|
|
|
V(EnforceDistinctSubnets, BOOL, "1"),
|
|
|
V(EntryNodes, ROUTERSET, NULL),
|
|
|
V(EntryStatistics, BOOL, "0"),
|
|
@@ -461,6 +462,7 @@ static const config_var_t testing_tor_network_defaults[] = {
|
|
|
V(TestingAuthDirTimeToLearnReachability, INTERVAL, "0 minutes"),
|
|
|
V(TestingEstimatedDescriptorPropagationTime, INTERVAL, "0 minutes"),
|
|
|
V(MinUptimeHidServDirectoryV2, INTERVAL, "0 minutes"),
|
|
|
+ V(TestingEnableConnBwEvent, BOOL, "1"),
|
|
|
VAR("___UsingTestNetworkDefaults", BOOL, UsingTestNetworkDefaults_, "1"),
|
|
|
|
|
|
{ NULL, CONFIG_TYPE_OBSOLETE, 0, NULL }
|
|
@@ -3236,6 +3238,12 @@ options_validate(or_options_t *old_options, or_options_t *options,
|
|
|
COMPLAIN("TestingEstimatedDescriptorPropagationTime is insanely high.");
|
|
|
}
|
|
|
|
|
|
+ if (options->TestingEnableConnBwEvent &&
|
|
|
+ !options->TestingTorNetwork && !options->UsingTestNetworkDefaults_) {
|
|
|
+ REJECT("TestingEnableConnBwEvent may only be changed in testing "
|
|
|
+ "Tor networks!");
|
|
|
+ }
|
|
|
+
|
|
|
if (options->TestingTorNetwork) {
|
|
|
log_warn(LD_CONFIG, "TestingTorNetwork is set. This will make your node "
|
|
|
"almost unusable in the public Tor network, and is "
|