summaryrefslogtreecommitdiff
path: root/src/or/control.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-03-10 12:05:50 -0500
committerNick Mathewson <nickm@torproject.org>2017-03-10 12:05:50 -0500
commit16b64fcfe178704ab09ba317f4c6e834f46b75e8 (patch)
tree39be2aa4b634c40902d9f5712a17d914d5a8eeb9 /src/or/control.c
parent118d7018d07ebc6324e8b7220002465479b0cbf3 (diff)
downloadtor-16b64fcfe178704ab09ba317f4c6e834f46b75e8.tar.gz
tor-16b64fcfe178704ab09ba317f4c6e834f46b75e8.zip
Mark GETINFO network-status as deprecated with a warning
control-spec has marked it deprecated for a long time. Closes ticket 21703.
Diffstat (limited to 'src/or/control.c')
-rw-r--r--src/or/control.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/or/control.c b/src/or/control.c
index 8ab31f18f7..7b17f47ec2 100644
--- a/src/or/control.c
+++ b/src/or/control.c
@@ -2047,6 +2047,12 @@ getinfo_helper_dir(control_connection_t *control_conn,
}
}
} else if (!strcmp(question, "network-status")) { /* v1 */
+ static int network_status_warned = 0;
+ if (!network_status_warned) {
+ log_warn(LD_CONTROL, "GETINFO network-status is deprecated; it will "
+ "go away in a future version of Tor.");
+ network_status_warned = 1;
+ }
routerlist_t *routerlist = router_get_routerlist();
if (!routerlist || !routerlist->routers ||
list_server_status_v1(routerlist->routers, answer, 1) < 0) {