Skip to content
Snippets Groups Projects
Commit 0cd16c4a authored by Roger Dingledine's avatar Roger Dingledine Committed by Nick Mathewson
Browse files

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.
parent 7ce76718
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment