aboutsummaryrefslogtreecommitdiff
path: root/bandwidth-file-spec.txt
diff options
context:
space:
mode:
authorteor <teor@torproject.org>2019-01-23 08:17:20 +1000
committerGitHub <noreply@github.com>2019-01-23 08:17:20 +1000
commit7f573b3c5968c3e59a15dfc05c0a21b194373c97 (patch)
treedc49da5a496f7372a8199d11abd123cf3b160d43 /bandwidth-file-spec.txt
parent9a3f014c826a15c4cf25dbcff198b1657c33946e (diff)
downloadtorspec-7f573b3c5968c3e59a15dfc05c0a21b194373c97.tar.gz
torspec-7f573b3c5968c3e59a15dfc05c0a21b194373c97.zip
bandwidth: Prefer a 5-character header terminator
Diffstat (limited to 'bandwidth-file-spec.txt')
-rw-r--r--bandwidth-file-spec.txt12
1 files changed, 9 insertions, 3 deletions
diff --git a/bandwidth-file-spec.txt b/bandwidth-file-spec.txt
index 385bdb6..fe9d056 100644
--- a/bandwidth-file-spec.txt
+++ b/bandwidth-file-spec.txt
@@ -96,7 +96,7 @@
Value ::= ArgumentCharValue+
ArgumentCharValue ::= any printing ASCII character except NL and SP.
Terminator ::= "=====" or "===="
- Note: sbws versions 0.1.0 to 1.0.2 used a 4-character terminator.
+ Generators SHOULD use a 5-charatcer terminator.
Timestamp ::= Int
Bandwidth ::= Int
MasterKey ::= a base64-encoded Ed25519 public key, with
@@ -305,11 +305,17 @@
[Zero or one time.]
- The Header List section ends with this Terminator.
+ The Header List section ends with a Terminator.
In version 1.0.0, Header List ends when the first relay bandwidth
is found conforming to the next section.
- Implementations of version 1.1.0 and later SHOULD include this Line.
+
+ Implementations of version 1.1.0 and later SHOULD use a 5-character
+ terminator.
+
+ Tor 0.4.0.1-alpha and later look for a 5-character terminator,
+ or the first relay bandwidth line. sbws versions 0.1.0 to 1.0.2
+ used a 4-character terminator, this bug was fixed in 1.0.3.
2.3. Relay Line format