-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
*: Add quic-v1 codepoint #64
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing changelog entry. Otherwise looks good to me. Thanks @elenaf9!
@@ -40,10 +40,10 @@ use multiaddr::{Multiaddr, multiaddr}; | |||
|
|||
let address = "/ip4/127.0.0.1/tcp/1234".parse::<Multiaddr>().unwrap(); | |||
// or with a macro | |||
let other = multiaddr!(Ip4([127, 0, 0, 1]), Udp(10500u16), Quic); | |||
let other = multiaddr!(Ip4([127, 0, 0, 1]), Udp(10500u16), QuicV1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙏
@@ -133,6 +133,7 @@ impl Arbitrary for Proto { | |||
Proto(Onion3((a, std::cmp::max(1, u16::arbitrary(g))).into())) | |||
} | |||
25 => Proto(Tls), | |||
26 => Proto(QuicV1), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are missing some protocols, see #65. Though that is out of scope for this pull request.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wonderful. Thanks!
Add
QuicV1
codepoint to represent QUIC Version 1 / RFC 9000. See multiformats/multiaddr#145 for motivation.To be merged after multiformats/multicodec#298.