mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 22:58:50 +01:00
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.
This commit is contained in:
parent
7a701f2603
commit
b67f010678
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue