Skip to content
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

fix(quic): Identify /quic as QUIC address #3288

Merged
merged 2 commits into from
Jan 6, 2023

Conversation

mxinden
Copy link
Member

@mxinden mxinden commented Dec 28, 2022

Description

Identify multiaddress with /quic (draft 29) as QUIC address in case support_draft_29 is true.

Without this patch the Rust punchr client would discard any QUIC addresses with /quic in its Transport::address_translation. Thus /quic based observed addresses from libp2p-identify would not be added to the local set of external addresses and thus QUIC would not be available as a transport for hole punching.

Notes

Links to any relevant issues

#3151 introduced draft-29 support.

Open Questions

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • A changelog entry has been made in the appropriate crates Not necessary as it hasn't yet been released.

Identify multiaddress with `/quic` (draft 29) as QUIC address in case `support_draft_29` is `true`.

Without this patch the Rust punchr client would discard any QUIC addresses with `/quic` in its
`Transport::address_translation`. Thus `/quic` based observed addresses from `libp2p-identify` would
not be added to the local set of external addresses and thus QUIC would not be available as a
transport for hole punching.
Copy link
Contributor

@elenaf9 elenaf9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @mxinden!

@elenaf9 elenaf9 added the send-it label Jan 6, 2023
@mergify mergify bot merged commit 5b8c3d2 into libp2p:master Jan 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants