]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Revise "sufficient exit nodes" check to work with restrictive ExitNodes
authorNick Mathewson <nickm@torproject.org>
Fri, 9 Mar 2012 19:23:23 +0000 (14:23 -0500)
committerNick Mathewson <nickm@torproject.org>
Fri, 9 Mar 2012 19:23:23 +0000 (14:23 -0500)
If you set ExitNodes so that only 1 exit node is accepted, the
previous patch would have made you unable to build circuits.

src/or/routerlist.c

index f9d2e8543c6c1c1d20cac06ec691b70a5a8bf115..86cdb83d9d163a0547ca227112b102692a1444bc 100644 (file)
@@ -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. */