aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-02-08 19:44:48 +0000
committerNick Mathewson <nickm@torproject.org>2007-02-08 19:44:48 +0000
commit69def349e095a2465d8c118111afcf5cd6b0da3b (patch)
treeac3d0331d659b814903671367c1f45833f95cd34 /src
parent9c081ab97645d2ea1493f474ecdf8d57895bde7f (diff)
downloadtor-69def349e095a2465d8c118111afcf5cd6b0da3b.tar.gz
tor-69def349e095a2465d8c118111afcf5cd6b0da3b.zip
r11716@catbus: nickm | 2007-02-08 14:19:24 -0500
Warn when we get a v0 control connection. svn:r9530
Diffstat (limited to 'src')
-rw-r--r--src/or/control.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/or/control.c b/src/or/control.c
index 2aef65f1f5..46d873b961 100644
--- a/src/or/control.c
+++ b/src/or/control.c
@@ -2822,6 +2822,7 @@ connection_control_process_inbuf_v0(control_connection_t *conn)
uint32_t body_len;
uint16_t command_type;
char *body=NULL;
+ static int have_warned_about_v0_protocol = 0;
again:
/* Try to suck a control message from the buffer. */
@@ -2850,6 +2851,15 @@ connection_control_process_inbuf_v0(control_connection_t *conn)
tor_assert(0);
}
+ if (!have_warned_about_v0_protocol) {
+ log_warn(LD_CONTROL, "An application has connected to us using the "
+ "version 0 control prototol, which has been deprecated since "
+ "Tor 0.1.1.1-alpha. This protocol will not be supported by "
+ "future versions of Tor; please use the v1 control protocol "
+ "instead.");
+ have_warned_about_v0_protocol = 1;
+ }
+
/* We got a command. If we need authentication, only authentication
* commands will be considered. */
if (conn->_base.state == CONTROL_CONN_STATE_NEEDAUTH_V0 &&