mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-20 10:12:15 +01:00
don't lie about bootstrap progress when clients use bridges
we were listing 50% as soon as we got a bridge's relay descriptor, even if we didn't have any consensus, certificates, etc yet.
This commit is contained in:
parent
245ecfff36
commit
5f13ae4b03
3
changes/bug9922
Normal file
3
changes/bug9922
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
o Minor bugfixes:
|
||||||
|
- When clients use bridges, [...] Fixes bug 9922; bugfix on [...]
|
||||||
|
|
@ -1639,6 +1639,7 @@ load_downloaded_routers(const char *body, smartlist_t *which,
|
|||||||
|
|
||||||
added = router_load_routers_from_string(body, NULL, SAVED_NOWHERE, which,
|
added = router_load_routers_from_string(body, NULL, SAVED_NOWHERE, which,
|
||||||
descriptor_digests, buf);
|
descriptor_digests, buf);
|
||||||
|
if (general)
|
||||||
control_event_bootstrap(BOOTSTRAP_STATUS_LOADING_DESCRIPTORS,
|
control_event_bootstrap(BOOTSTRAP_STATUS_LOADING_DESCRIPTORS,
|
||||||
count_loading_descriptors_progress());
|
count_loading_descriptors_progress());
|
||||||
return added;
|
return added;
|
||||||
|
@ -1106,6 +1106,7 @@ connection_edge_process_relay_cell_not_open(
|
|||||||
control_event_bootstrap(BOOTSTRAP_STATUS_LOADING_STATUS, 0);
|
control_event_bootstrap(BOOTSTRAP_STATUS_LOADING_STATUS, 0);
|
||||||
break;
|
break;
|
||||||
case DIR_PURPOSE_FETCH_SERVERDESC:
|
case DIR_PURPOSE_FETCH_SERVERDESC:
|
||||||
|
if (TO_DIR_CONN(dirconn)->router_purpose == ROUTER_PURPOSE_GENERAL)
|
||||||
control_event_bootstrap(BOOTSTRAP_STATUS_LOADING_DESCRIPTORS,
|
control_event_bootstrap(BOOTSTRAP_STATUS_LOADING_DESCRIPTORS,
|
||||||
count_loading_descriptors_progress());
|
count_loading_descriptors_progress());
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user