diff options
author | Roger Dingledine <arma@torproject.org> | 2013-10-08 11:50:53 -0400 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2013-10-08 11:50:53 -0400 |
commit | 5f13ae4b032d033ec51bb79fc69717e02faaefd1 (patch) | |
tree | 3554cdcc701561c6360161f4bd0cbf52f227896f /src/or/relay.c | |
parent | 245ecfff36c0cecc8e4aef5ad8c062d7d4c07955 (diff) | |
download | tor-5f13ae4b032d033ec51bb79fc69717e02faaefd1.tar.gz tor-5f13ae4b032d033ec51bb79fc69717e02faaefd1.zip |
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.
Diffstat (limited to 'src/or/relay.c')
-rw-r--r-- | src/or/relay.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/relay.c b/src/or/relay.c index 010dd1dbf4..b2695ceec8 100644 --- a/src/or/relay.c +++ b/src/or/relay.c @@ -1106,8 +1106,9 @@ connection_edge_process_relay_cell_not_open( control_event_bootstrap(BOOTSTRAP_STATUS_LOADING_STATUS, 0); break; case DIR_PURPOSE_FETCH_SERVERDESC: - control_event_bootstrap(BOOTSTRAP_STATUS_LOADING_DESCRIPTORS, - count_loading_descriptors_progress()); + if (TO_DIR_CONN(dirconn)->router_purpose == ROUTER_PURPOSE_GENERAL) + control_event_bootstrap(BOOTSTRAP_STATUS_LOADING_DESCRIPTORS, + count_loading_descriptors_progress()); break; } } |