mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 12:23:32 +01:00
Add DisableOOSCheck option, on by default until we have better heuristics
This commit is contained in:
parent
3efe92ba58
commit
31028af440
@ -211,6 +211,7 @@ static config_var_t option_vars_[] = {
|
||||
V(CountPrivateBandwidth, BOOL, "0"),
|
||||
V(DataDirectory, FILENAME, NULL),
|
||||
V(DataDirectoryGroupReadable, BOOL, "0"),
|
||||
V(DisableOOSCheck, BOOL, "1"),
|
||||
V(DisableNetwork, BOOL, "0"),
|
||||
V(DirAllowPrivateAddresses, BOOL, "0"),
|
||||
V(TestingAuthDirTimeToLearnReachability, INTERVAL, "30 minutes"),
|
||||
|
@ -4673,6 +4673,11 @@ connection_check_oos(int n_socks, int failed)
|
||||
int target_n_socks = 0, moribund_socks, socks_to_kill;
|
||||
smartlist_t *conns;
|
||||
|
||||
/* Early exit: is OOS checking disabled? */
|
||||
if (get_options()->DisableOOSCheck) {
|
||||
return;
|
||||
}
|
||||
|
||||
/* Sanity-check args */
|
||||
tor_assert(n_socks >= 0);
|
||||
|
||||
|
@ -4458,6 +4458,9 @@ typedef struct {
|
||||
* participate in the protocol. If on (default), a flag is added to the
|
||||
* vote indicating participation. */
|
||||
int AuthDirSharedRandomness;
|
||||
|
||||
/** If 1, we skip all OOS checks. */
|
||||
int DisableOOSCheck;
|
||||
} or_options_t;
|
||||
|
||||
/** Persistent state for an onion router, as saved to disk. */
|
||||
|
Loading…
Reference in New Issue
Block a user