mirror of
https://github.com/amnezia-vpn/amneziawg-tools.git
synced 2026-10-13 21:34:42 +00:00
[PR #64] wg-quick: android: prefer kernel module over userspace for AWG configs #71
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-tools#71
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-tools/pull/64
Author: @erophey7
Created: 8/8/2026
Status: 🔄 Open
Base:
master← Head:fix/android-kernel-first📝 Commits (2)
4a7eb95wg-quick: android: prefer kernel module over userspace for AWG configsb69bebeMerge branch 'master' into fix/android-kernel-first📊 Changes
1 file changed (+10 additions, -40 deletions)
View changed files
📝
src/wg-quick/android.c(+10 -40)📄 Description
What
Make
wg-quick's Android integration prefer the amneziawg kernel module over the userspaceamneziawg-gobinary for configurations that use AWG obfuscation parameters.Why
add_if()previously routed any config containing AmneziaWG parameters (Jc, Jmin, Jmax, S1-S4, H1-H4, I1-I5) to the userspaceamneziawg-gobinary, even when the kernel module is present. Sinceamneziawg-gois not shipped with the Android app, kernel-mode tunnels with AWG obfuscation failed withamneziawg-go: inaccessible or not found(exit 127).The kernel module supports all these parameters via
awg setconf, so the selection is now kernel-first:ip link add ... type amneziawgwhenever/sys/module/amneziawgis available;amneziawg-goonly as a fallback for devices without the kernel module.Drops the now-unused
is_awg_onflag and the parser branches that only existed to set it.Testing performed
wg-quickfor Android target.wg-quick up/wg-quick downcycle verified in both kernel-module and userspace-fallback modes.Files changed
src/wg-quick/android.c(+10, −40)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.