aboutsummaryrefslogtreecommitdiff
path: root/control-spec.txt
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2020-07-28 23:41:03 -0400
committerNick Mathewson <nickm@torproject.org>2020-07-28 23:41:03 -0400
commit1417af05de247d9f858863849d16a7185577d369 (patch)
treeb1002d076f5e1900c33fafc4e3246e9a4f1603b0 /control-spec.txt
parent231c26ef2a15ea99f9dfa23a61cb410478a454d9 (diff)
downloadtorspec-1417af05de247d9f858863849d16a7185577d369.tar.gz
torspec-1417af05de247d9f858863849d16a7185577d369.zip
Note that MAPADDRESS results can have mixed status codes.
Closes #30123
Diffstat (limited to 'control-spec.txt')
-rw-r--r--control-spec.txt15
1 files changed, 12 insertions, 3 deletions
diff --git a/control-spec.txt b/control-spec.txt
index 0334639..b9fa729 100644
--- a/control-spec.txt
+++ b/control-spec.txt
@@ -169,9 +169,10 @@
ReplyText = XXXX
StatusCode = 3DIGIT
- Multiple lines in a single reply from Tor to the controller are guaranteed to
- share the same status code. Specific replies are mentioned below in section 3,
- and described more fully in section 4.
+ Unless specified otherwise, multiple lines in a single reply from
+ Tor to the controller are guaranteed to share the same status
+ code. Specific replies are mentioned below in section 3, and
+ described more fully in section 4.
[Compatibility note: versions of Tor before 0.2.0.3-alpha sometimes
generate AsyncReplies of the form "*(MidReplyLine / DataReplyLine)".
@@ -538,6 +539,14 @@
a certain time, then it must explicitly un-map the address when that
time has elapsed.
+ MapAddress replies MAY contain mixed status codes.
+
+ Example:
+
+ C: MAPADDRESS xxx=@@@ 0.0.0.0=bogus1.google.com
+ S: 512-syntax error: invalid address '@@@'
+ S: 250 127.199.80.246=bogus1.google.com
+
3.9. GETINFO
Sent from the client to the server. The syntax is as for GETCONF: