Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Silvio Rhatto
Tor
Commits
ed2cbbf7
Commit
ed2cbbf7
authored
Feb 10, 2020
by
Nick Mathewson
🌻
Browse files
Merge branch 'maint-0.4.0' into release-0.4.0
parents
d0d2aba9
f3fa22bf
Changes
2
Hide whitespace changes
Inline
Side-by-side
changes/ticket33212
0 → 100644
View file @
ed2cbbf7
o Minor bugfixes (rust, build):
- Fix a syntax warning given by newer versions of Rust, and creating
problems for our continuous integration.
Fixes bug 33212; bugfix on 0.3.5.1-alpha.
src/rust/protover/protover.rs
View file @
ed2cbbf7
...
...
@@ -26,7 +26,7 @@ const FIRST_TOR_VERSION_TO_ADVERTISE_PROTOCOLS: &'static str = "0.2.9.3-alpha";
/// before concluding that someone is trying to DoS us
///
/// C_RUST_COUPLED: protover.c `MAX_PROTOCOLS_TO_EXPAND`
const
MAX_PROTOCOLS_TO_EXPAND
:
usize
=
(
1
<<
16
)
;
const
MAX_PROTOCOLS_TO_EXPAND
:
usize
=
1
<<
16
;
/// The maximum size an `UnknownProtocol`'s name may be.
pub
(
crate
)
const
MAX_PROTOCOL_NAME_LENGTH
:
usize
=
100
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment