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 nat64 well-known prefix check #205

Merged
merged 3 commits into from
Jul 10, 2023

Conversation

sukunrt
Copy link
Member

@sukunrt sukunrt commented Jul 10, 2023

No description provided.

net/ip.go Outdated Show resolved Hide resolved
net/ip.go Outdated
// the well-known prefix "64:ff9b" used for NAT64 Translation
// see RFC 6052
func init() {
var err error
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
var err error

net/ip.go Outdated
@@ -118,13 +117,21 @@ func zoneless(m ma.Multiaddr) ma.Multiaddr {
}
}

var NAT64WellKnownPrefix = [4]byte{0x0, 0x64, 0xff, 0x9b}
var NAT64WellKnownPrefix net.IPNet
Copy link
Contributor

Choose a reason for hiding this comment

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

This doesn't need to be exposed, right?

@marten-seemann marten-seemann merged commit 0e7485e into multiformats:master Jul 10, 2023
9 checks passed
@MarcoPolo MarcoPolo mentioned this pull request Jul 14, 2023
29 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.

2 participants