mirror of
https://github.com/amnezia-vpn/amneziawg-android.git
synced 2026-10-13 21:34:07 +00:00
[PR #67] Add "Prefer IPv6" option for endpoint resolution #79
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
amnezia-vpn/amneziawg-android#79
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/amnezia-vpn/amneziawg-android/pull/67
Author: @Darudas
Created: 3/31/2026
Status: 🔄 Open
Base:
master← Head:feature/prefer-ipv6📝 Commits (1)
49497b8feat: add per-interface IPv6 preference toggle for endpoint resolution📊 Changes
9 files changed (+102 additions, -9 deletions)
View changed files
📝
tunnel/src/main/java/org/amnezia/awg/backend/GoBackend.java(+2 -1)📝
tunnel/src/main/java/org/amnezia/awg/config/BadConfigException.java(+1 -0)📝
tunnel/src/main/java/org/amnezia/awg/config/Config.java(+2 -1)📝
tunnel/src/main/java/org/amnezia/awg/config/InetEndpoint.java(+24 -4)📝
tunnel/src/main/java/org/amnezia/awg/config/Interface.java(+36 -1)📝
tunnel/src/main/java/org/amnezia/awg/config/Peer.java(+12 -1)📝
ui/src/main/java/org/amnezia/awg/viewmodel/InterfaceProxy.kt(+11 -0)📝
ui/src/main/res/layout/tunnel_editor_fragment.xml(+13 -1)📝
ui/src/main/res/values/strings.xml(+1 -0)📄 Description
Endpoint resolution currently always prefers IPv4. This makes it impossible to use hostnames when the server is only reachable via IPv6 (e.g. behind CGNAT with no public IPv4).
This adds a
PreferIpv6 = true/falsetoggle to the[Interface]section. When enabled, AAAA records are preferred over A records. Default behavior is unchanged.If no IPv6 address is found, it falls back to IPv4 automatically.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.