diff options
author | Neel Chauhan <neel@neelc.org> | 2019-04-11 21:30:48 -0400 |
---|---|---|
committer | Neel Chauhan <neel@neelc.org> | 2019-04-11 21:30:48 -0400 |
commit | 14d700804568ef5624856976b723eafab9e41972 (patch) | |
tree | a57c8087440ceb5cb5fa05e74ba12a02ef6ed179 /src/feature/control | |
parent | c07d854772bda558ef8cf4fd71f2673c7ed00083 (diff) | |
download | tor-14d700804568ef5624856976b723eafab9e41972.tar.gz tor-14d700804568ef5624856976b723eafab9e41972.zip |
Stop setting routers as running in list_server_status_v1()
Diffstat (limited to 'src/feature/control')
-rw-r--r-- | src/feature/control/fmt_serverstatus.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/feature/control/fmt_serverstatus.c b/src/feature/control/fmt_serverstatus.c index a1ddd2119a..fc1029ae84 100644 --- a/src/feature/control/fmt_serverstatus.c +++ b/src/feature/control/fmt_serverstatus.c @@ -78,10 +78,7 @@ list_server_status_v1(smartlist_t *routers, char **router_status_out, SMARTLIST_FOREACH_BEGIN(routers, routerinfo_t *, ri) { const node_t *node = node_get_by_id(ri->cache_info.identity_digest); tor_assert(node); - if (authdir) { - /* Update router status in routerinfo_t. */ - dirserv_set_router_is_running(ri, now); - } + if (for_controller) { char name_buf[MAX_VERBOSE_NICKNAME_LEN+2]; char *cp = name_buf; |