mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Revise "sufficient exit nodes" check to work with restrictive ExitNodes
If you set ExitNodes so that only 1 exit node is accepted, the previous patch would have made you unable to build circuits.
This commit is contained in:
@@ -4902,12 +4902,6 @@ update_router_have_minimum_dir_info(void)
|
||||
res = 0;
|
||||
control_event_bootstrap(BOOTSTRAP_STATUS_REQUESTING_DESCRIPTORS, 0);
|
||||
goto done;
|
||||
} else if (num_exit_present < 2) {
|
||||
tor_snprintf(dir_info_status, sizeof(dir_info_status),
|
||||
"Only %d descriptor%s here and believed reachable!",
|
||||
num_exit_present, num_exit_present ? "" : "s");
|
||||
res = 0;
|
||||
goto done;
|
||||
}
|
||||
|
||||
/* Check for entry nodes. */
|
||||
|
||||
Reference in New Issue
Block a user