mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
Update routerinfo_t.is_running when generating network status on authdirserver.
svn:r4883
This commit is contained in:
parent
29a6c17d67
commit
0691c7221e
@ -538,6 +538,8 @@ list_server_status(smartlist_t *routers, char **router_status_out)
|
|||||||
is_live = get_options()->AssumeReachable ||
|
is_live = get_options()->AssumeReachable ||
|
||||||
now < ri->last_reachable + REACHABLE_TIMEOUT;
|
now < ri->last_reachable + REACHABLE_TIMEOUT;
|
||||||
}
|
}
|
||||||
|
/* Update router status in routerinfo_t. */
|
||||||
|
ri->is_running = is_live;
|
||||||
} else {
|
} else {
|
||||||
is_live = ri->is_running;
|
is_live = ri->is_running;
|
||||||
}
|
}
|
||||||
@ -1108,6 +1110,8 @@ generate_v2_networkstatus(void)
|
|||||||
ri->identity_digest, CONN_TYPE_OR);
|
ri->identity_digest, CONN_TYPE_OR);
|
||||||
f_running = (router_is_me(ri) && !we_are_hibernating()) ||
|
f_running = (router_is_me(ri) && !we_are_hibernating()) ||
|
||||||
(conn && conn->state == OR_CONN_STATE_OPEN);
|
(conn && conn->state == OR_CONN_STATE_OPEN);
|
||||||
|
/* Update router status in routerinfo_t. */
|
||||||
|
ri->is_running = f_running;
|
||||||
} else {
|
} else {
|
||||||
f_running = ri->is_running;
|
f_running = ri->is_running;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user