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

[core] Support ipv4 and ipv6 compact addresses #592

Merged
merged 1 commit into from
Jan 5, 2023

Conversation

alanmcgovern
Copy link
Owner

Augment PeerInfo to also support parsing IPV6 addresses. The format used to parse the compact peer notation into an actual IPAddress/Uri is still hardcoded to assume IPV4 in a few places, though that's primarily because more groundwork needs to be done to fully map IPv6 throughout dht, peer exchange, etc.

Some parts of the spec are written to allow sending ipv4 and ipv6 formats in the same message, others use the active connection type to discriminate. i.e. if you send a udp request over ipv4 you get ipv4 peers back, if you send it over ipv6 you get ipv6 peers.

It makes it a bit more complicated to support as a result.

#588

@alanmcgovern alanmcgovern merged commit 8a40c20 into master Jan 5, 2023
@alanmcgovern alanmcgovern deleted the compact-peer-ipv4-ipv6 branch January 5, 2023 00:06
@alanmcgovern alanmcgovern mentioned this pull request Jan 5, 2023
8 tasks
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.

1 participant