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

feat!: add IPv6 support #245

Merged
merged 6 commits into from
Jul 10, 2023
Merged

feat!: add IPv6 support #245

merged 6 commits into from
Jul 10, 2023

Conversation

wemeetagain
Copy link
Member

@wemeetagain wemeetagain commented Apr 28, 2023

Resolves #167

  • Adds the capability to specify either an ip4, ip6, or both bind addresses instead of just a single bind address
  • By specifying the addresses to bind to, this sets the IPMode (either ip4, ip6, or both).
  • Based on the specified IPMode, several things happen:
    • a udp4 socket and/or a udp6 socket are opened
    • discovered peers will be contacted based on the proper entry in their enr (either ip+udp or ip6+udp6) (ip6 is the default in the case of the 'both' IPMode) using the proper socket

src/transport/types.ts Outdated Show resolved Hide resolved
@wemeetagain wemeetagain marked this pull request as ready for review May 3, 2023 20:56
@wemeetagain wemeetagain requested a review from a team as a code owner May 3, 2023 20:56
@wemeetagain wemeetagain merged commit 4ccc10f into master Jul 10, 2023
12 checks passed
@wemeetagain wemeetagain deleted the cayman/ip6-support branch July 10, 2023 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support ipv6
2 participants