mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
fix routerlist/pick_directory_server_impl in light of 12538
This commit is contained in:
@@ -143,6 +143,7 @@ dir_common_gen_routerstatus_for_v3ns(int idx, time_t now)
|
||||
rs->addr = 0xC0000203;
|
||||
rs->or_port = 500;
|
||||
rs->dir_port = 1999;
|
||||
rs->is_v2_dir = 1;
|
||||
/* Running flag (and others) cleared */
|
||||
break;
|
||||
case 4:
|
||||
|
||||
@@ -241,6 +241,8 @@ test_router_pick_directory_server_impl(void *arg)
|
||||
node_router2 = node_get_mutable_by_id(router2_id);
|
||||
node_router3 = node_get_mutable_by_id(router3_id);
|
||||
|
||||
node_router1->is_possible_guard = 1;
|
||||
|
||||
node_router1->is_running = 0;
|
||||
node_router3->is_running = 0;
|
||||
rs = router_pick_directory_server_impl(V3_DIRINFO, flags, NULL);
|
||||
|
||||
Reference in New Issue
Block a user