summaryrefslogtreecommitdiff
path: root/src/or/control.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-07-22 14:55:09 +0000
committerNick Mathewson <nickm@torproject.org>2005-07-22 14:55:09 +0000
commit5b4e11fa5d73d9b138e60df36cbaa0a309e56c55 (patch)
treee2638b4ea58f9265409faf47390de280c042de16 /src/or/control.c
parent76a6cec3f13ffad26a2c6122a9dc21d08c5da981 (diff)
downloadtor-5b4e11fa5d73d9b138e60df36cbaa0a309e56c55.tar.gz
tor-5b4e11fa5d73d9b138e60df36cbaa0a309e56c55.zip
Add getinfo logic for accounting; add options for helper nodes
svn:r4632
Diffstat (limited to 'src/or/control.c')
-rw-r--r--src/or/control.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/control.c b/src/or/control.c
index 2aa6305ca9..dc3633fa99 100644
--- a/src/or/control.c
+++ b/src/or/control.c
@@ -1121,6 +1121,8 @@ handle_getinfo_helper(const char *question, char **answer)
*answer = NULL; /* unrecognized key by default */
if (!strcmp(question, "version")) {
*answer = tor_strdup(VERSION);
+ } else if (!strcmpstart(question, "accounting/")) {
+ return accounting_getinfo_helper(question, answer);
} else if (!strcmpstart(question, "desc/id/")) {
routerinfo_t *ri = router_get_by_hexdigest(question+strlen("desc/id/"));
if (ri && ri->signed_descriptor)