diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-10-27 02:07:04 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-10-27 02:07:04 +0000 |
commit | 5b72dc77ade9fc0b6c4d8b3aecd2d5b6f8400a3a (patch) | |
tree | 93176ce91894df211ae9befce28a7cc2cfdb75d5 /src/or/control.c | |
parent | e624fe47338c2c0ff1027a63c27891c9a5d30932 (diff) | |
download | tor-5b72dc77ade9fc0b6c4d8b3aecd2d5b6f8400a3a.tar.gz tor-5b72dc77ade9fc0b6c4d8b3aecd2d5b6f8400a3a.zip |
r9395@Kushana: nickm | 2006-10-26 22:06:51 -0400
Fix Bug 349: Have GETINFO network-status return even old routers, and use long nicknames where appropriate. Document this.
svn:r8834
Diffstat (limited to 'src/or/control.c')
-rw-r--r-- | src/or/control.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/control.c b/src/or/control.c index 036323d2b4..baaaa29899 100644 --- a/src/or/control.c +++ b/src/or/control.c @@ -1532,8 +1532,9 @@ handle_getinfo_helper(control_connection_t *control_conn, strlen("unregistered-servers-")); } else if (!strcmp(question, "network-status")) { routerlist_t *routerlist = router_get_routerlist(); + int verbose = control_conn->use_long_names; if (!routerlist || !routerlist->routers || - list_server_status(routerlist->routers, answer) < 0) { + list_server_status(routerlist->routers, answer, verbose ? 2 : 1) < 0) { return -1; } } else if (!strcmp(question, "circuit-status")) { |