diff options
author | Roger Dingledine <arma@torproject.org> | 2016-05-11 15:31:48 -0400 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2016-05-27 11:15:21 -0400 |
commit | 11d52a449c61b24588c17688892e07fa395ffd0c (patch) | |
tree | f8af0eaed1203f7a929b766b8985bf33eac20d98 /src/or/control.c | |
parent | 48b7db35590afee77fb608b46328959e8a9b2d31 (diff) | |
download | tor-11d52a449c61b24588c17688892e07fa395ffd0c.tar.gz tor-11d52a449c61b24588c17688892e07fa395ffd0c.zip |
Disable GET /tor/bytes.txt and GETINFO dir-usage
Remove support for "GET /tor/bytes.txt" DirPort request, and
"GETINFO dir-usage" controller request, which were only available
via a compile-time option in Tor anyway.
Feature was added in 0.2.2.1-alpha. Resolves ticket 19035.
Diffstat (limited to 'src/or/control.c')
-rw-r--r-- | src/or/control.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/or/control.c b/src/or/control.c index 862c836e40..b503591859 100644 --- a/src/or/control.c +++ b/src/or/control.c @@ -1724,8 +1724,6 @@ getinfo_helper_misc(control_connection_t *conn, const char *question, } else if (!strcmp(question, "limits/max-mem-in-queues")) { tor_asprintf(answer, U64_FORMAT, U64_PRINTF_ARG(get_options()->MaxMemInQueues)); - } else if (!strcmp(question, "dir-usage")) { - *answer = directory_dump_request_log(); } else if (!strcmp(question, "fingerprint")) { crypto_pk_t *server_key; if (!server_mode(get_options())) { @@ -2558,7 +2556,6 @@ static const getinfo_item_t getinfo_items[] = { "Username under which the tor process is running."), ITEM("process/descriptor-limit", misc, "File descriptor limit."), ITEM("limits/max-mem-in-queues", misc, "Actual limit on memory in queues"), - ITEM("dir-usage", misc, "Breakdown of bytes transferred over DirPort."), PREFIX("desc-annotations/id/", dir, "Router annotations by hexdigest."), PREFIX("dir/server/", dir,"Router descriptors as retrieved from a DirPort."), PREFIX("dir/status/", dir, |