mirror of
https://github.com/amnezia-vpn/amneziawg-android.git
synced 2026-10-13 21:34:07 +00:00
[PR #105] fix(libwg-go): set the UAPI socket directory under the /v3 module path #102
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#102
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/105
Author: @Fast-and-Pythonic
Created: 9/26/2026
Status: 🔄 Open
Base:
master← Head:fix/uapi-socket-directory📝 Commits (1)
238a180fix(libwg-go): set the UAPI socket directory under the /v3 module path📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
tunnel/tools/libwg-go/Makefile(+1 -1)📄 Description
The
-Xflag intunnel/tools/libwg-go/Makefilesetsipc.socketDirectoryby its import path, and that path still readsgithub.com/amnezia-vpn/amneziawg-go/ipc. Since #86 the module isgithub.com/amnezia-vpn/amneziawg-go/v3, so the flag matches no symbol and sets nothing. The linker does not complain about that.The variable then keeps its default,
/var/run/amneziawg. On Android/varis read-only, so every tunnel start logs this and runs without a UAPI socket:This PR adds
/v3to the path. The socket goes back to/data/data/<package>/cache/amneziawg, where it was before the module rename.Testing
Poco F7, Android 16. The line above appears on every connect in logcat from the current build.
To check the flag itself, I built a small program that calls
ipc.UAPIOpen("t")from amneziawg-gov3.1.20260814, the versiongo.modpins, twice for android/arm64: once with the old-Xpath, once with the/v3path. The directory pointed into an app's data directory, and I ran both as that app (Termux):One line, independent of anything else.
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.