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

Don't strip scopeId when resolving ipv6 address #12019

Merged
merged 1 commit into from Jan 19, 2022
Merged

Conversation

normanmaurer
Copy link
Member

Motivation:

Due a bug we did strip the scopeId of the ipv6 address string when using the DnsNameResolver. This could later then result to things like "No Route to host" exceptions.

Modifications:

  • Add new method to NetUtil which will create the InetAddress for an string that contains an ip while still preserve the scopeId.
  • Use this new method
  • Add unit tests.

Result:

Fixes #11563

Motivation:

Due a bug we did strip the scopeId of the ipv6 address string when using the DnsNameResolver. This could later then result to things like "No Route to host" exceptions.

Modifications:

- Add new method to NetUtil which will create the InetAddress for an string that contains an ip while still preserve the scopeId.
- Use this new method
- Add unit tests.

Result:

Fixes #11563
@normanmaurer
Copy link
Member Author

FYI @vietj as this came up as a vertx issue first.

@normanmaurer normanmaurer merged commit 982b890 into 4.1 Jan 19, 2022
@normanmaurer normanmaurer deleted the dont_strip_scope_id branch January 19, 2022 07:36
normanmaurer added a commit that referenced this pull request Jan 19, 2022
Motivation:

Due a bug we did strip the scopeId of the ipv6 address string when using the DnsNameResolver. This could later then result to things like "No Route to host" exceptions.

Modifications:

- Add new method to NetUtil which will create the InetAddress for an string that contains an ip while still preserve the scopeId.
- Use this new method
- Add unit tests.

Result:

Fixes #11563
10brothers pushed a commit to 10brothers/netty that referenced this pull request Jan 20, 2022
Motivation:

Due a bug we did strip the scopeId of the ipv6 address string when using the DnsNameResolver. This could later then result to things like "No Route to host" exceptions.

Modifications:

- Add new method to NetUtil which will create the InetAddress for an string that contains an ip while still preserve the scopeId.
- Use this new method
- Add unit tests.

Result:

Fixes netty#11563
raidyue pushed a commit to raidyue/netty that referenced this pull request Jul 8, 2022
Motivation:

Due a bug we did strip the scopeId of the ipv6 address string when using the DnsNameResolver. This could later then result to things like "No Route to host" exceptions.

Modifications:

- Add new method to NetUtil which will create the InetAddress for an string that contains an ip while still preserve the scopeId.
- Use this new method
- Add unit tests.

Result:

Fixes netty#11563
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.

MacOS IPv6 UDP - No Route to Host (Works on Linux and Windows)
2 participants