mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
if we learn that a down entry guard is up, count our working entry
guards correctly when logging. svn:r5791
This commit is contained in:
parent
eb78295e4e
commit
284fe9cad5
@ -2014,12 +2014,12 @@ entry_guard_set_status(const char *digest, int succeeded)
|
|||||||
changed = 1;
|
changed = 1;
|
||||||
}
|
}
|
||||||
if (entry->down_since) {
|
if (entry->down_since) {
|
||||||
|
entry->down_since = 0;
|
||||||
/*XXXX shouldn't be so loud. NM */
|
/*XXXX shouldn't be so loud. NM */
|
||||||
notice(LD_CIRC,
|
notice(LD_CIRC,
|
||||||
"Connection to formerly down entry guard '%s' succeeded. "
|
"Connection to formerly down entry guard '%s' succeeded. "
|
||||||
"%d/%d entry guards usable/new.", entry->nickname,
|
"%d/%d entry guards usable/new.", entry->nickname,
|
||||||
num_live_entry_guards(), smartlist_len(entry_guards));
|
num_live_entry_guards(), smartlist_len(entry_guards));
|
||||||
entry->down_since = 0;
|
|
||||||
log_entry_guards(LOG_INFO);
|
log_entry_guards(LOG_INFO);
|
||||||
changed = 1;
|
changed = 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user