From 6602098e0365162087a8429c25724e6aacada490 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 24 Jun 2005 18:04:00 +0000 Subject: [PATCH] Describe how to detect v0 or v1 protocol svn:r4478 --- doc/control-spec.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/control-spec.txt b/doc/control-spec.txt index 81d1cd7776..7bf7c50b39 100644 --- a/doc/control-spec.txt +++ b/doc/control-spec.txt @@ -635,7 +635,11 @@ about dns resolves, etc, so the controller can keep synced. -RD] 5.3. Backward compatibility For backward compatibility with the "version 0" control protocol, Tor checks - whether the third byte the first command is zero. If it is, Tor + whether the third octet the first command is zero. If it is, Tor assumes that version 0 is in use. This feature is deprecated, and will be removed in the 0.1.2.x Tor development series. + In order to detect which version of the protocol is supported controllers + should send the sequence [00 00 0D 0A]. This is a valid and unrecognized + command in both protocol versions, and implementations can detect which + error they have received. -- 2.11.4.GIT