mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
the first piece of bug 969 fixing
tell the rephist module that a given relay is down whenever we determine that it's down, not just when we thought it used to be up.
This commit is contained in:
parent
7ce767181f
commit
0cd16c4ad3
@ -951,8 +951,8 @@ dirserv_set_router_is_running(routerinfo_t *router, time_t now)
|
||||
answer = get_options()->AssumeReachable ||
|
||||
now < router->last_reachable + REACHABLE_TIMEOUT;
|
||||
|
||||
if (router->is_running && !answer) {
|
||||
/* it was running but now it's not. tell rephist. */
|
||||
if (!answer) {
|
||||
/* not considered reachable. tell rephist. */
|
||||
rep_hist_note_router_unreachable(router->cache_info.identity_digest, now);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user