Prefer IPv6 over IPv4 during endpoint resolution - #60
Draft
userunkn4wn wants to merge 1 commit into
Draft
Conversation
Signed-off-by: Fabian <98067373+userunkn4wn@users.noreply.github.com>
|
+1, if not this at least give us an option to prefer ipv6 if available! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I know this repository is only a mirror, but I would still like to use this pull request to start a discussion.
I noticed that WireGuard on iOS appears to prefer IPv4 DNS records over IPv6 records. This behavior is not suitable for my use case and may reflect a more traditional or legacy address-selection approach.
The proposed change demonstrates one possible way to prefer IPv6 over IPv4:
Please note that AI_ADDRCONFIG does not verify actual IPv6 connectivity. It only ensures that IPv6 results are returned when IPv6 is configured on the local system.
This code has not been tested because I do not currently have access to the Apple Developer Program. I would therefore appreciate feedback, testing, or suggestions for a better implementation.
I would also be interested in discussing whether there are still technical reasons for preferring IPv4 over IPv6 on current iOS versions.