aboutsummaryrefslogtreecommitdiff
path: root/src/rust
diff options
context:
space:
mode:
authorteor <teor2345@gmail.com>2018-01-30 01:51:59 +1100
committerteor <teor2345@gmail.com>2018-01-30 02:18:57 +1100
commitb67f0106785a393d85a4c2fb1c205aa3d2e3b301 (patch)
tree52eb86305fda1b2d06768d5ba3e498182219e8d1 /src/rust
parent7a701f260356d9363dfa1b7694c5cafff57ad221 (diff)
downloadtor-b67f0106785a393d85a4c2fb1c205aa3d2e3b301.tar.gz
tor-b67f0106785a393d85a4c2fb1c205aa3d2e3b301.zip
Add Link protocol version 5 to the supported protocols list in protover.rs
And fix the unsupported protover example so it uses a Link protover much higher than 5. Part of #25070, bugfix on 0.3.3.1-alpha, which introduced the protover crate.
Diffstat (limited to 'src/rust')
-rw-r--r--src/rust/protover/protover.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rust/protover/protover.rs b/src/rust/protover/protover.rs
index 5e281a3e92..cf6fb78e2f 100644
--- a/src/rust/protover/protover.rs
+++ b/src/rust/protover/protover.rs
@@ -32,7 +32,7 @@ const SUPPORTED_PROTOCOLS: &'static [&'static str] = &[
"HSDir=1-2",
"HSIntro=3-4",
"HSRend=1-2",
- "Link=1-4",
+ "Link=1-5",
"LinkAuth=1,3",
"Microdesc=1-2",
"Relay=1-2",
@@ -684,7 +684,7 @@ fn write_vote_to_string(vote: &HashMap<String, String>) -> String {
/// ```
/// use protover::*;
///
-/// let is_supported = is_supported_here(Proto::Link, 5);
+/// let is_supported = is_supported_here(Proto::Link, 10);
/// assert_eq!(false, is_supported);
///
/// let is_supported = is_supported_here(Proto::Link, 1);