Zane Schepke 784bab913f fix: amenziawg-go regression and vpn network handle race
Backs out a padding effectiveness regression that breaks padding behavior on larger packets: https://github.com/amnezia-vpn/amneziawg-go/commit/da11c9fadc49333d654c4d7ac18fc8d63f4e8000

Fixes a VPN network handle race for custom tunnel DNS where we sometimes never get and report the VPN network handle to native, causing encrypted tunnel DNS to leak.

ref: https://github.com/wgtunnel/android/issues/1480
2026-09-20 18:54:38 -04:00
2026-08-09 23:50:01 -04:00
2026-08-26 03:37:29 -04:00
2026-08-09 23:50:01 -04:00
2026-08-09 23:50:01 -04:00
2026-08-09 23:50:01 -04:00
2026-08-09 23:50:01 -04:00
2026-08-09 23:50:01 -04:00
2026-08-24 00:08:21 -04:00

WG Tunnel Core

The shared backend used by the WG Tunnel apps: WireGuard / AmneziaWG config parsing, tunnel orchestration, tunnel recovery, DNS bootstrap, and native JNI.

License: MIT Maven Central

Modules

Artifact Description
com.wgtunnel:parser WireGuard / AmneziaWG conf parser (JVM)
com.wgtunnel:backend Kotlin Multiplatform tunnel backend (pulls the Android or JVM variant)
com.wgtunnel:backend-android Android variant of the backend
com.wgtunnel:backend-jvm JVM / desktop variant of the backend
com.wgtunnel:backend-android-jni AmneziaWG userspace + JNI
com.wgtunnel:hevtunnel hev-socks5-tunnel JNI for lockdown / kill switch

Requirements

Install these before a source build.

  • JDK 21
  • Git
  • make
  • Android SDK
  • Android NDK
  • C toolchain
  • MinGW-w64
  • On Linux and macOS, flock

Go toolchain is downloaded and patched.

Build

From the repo root:

./gradlew build

Format Kotlin:

./gradlew format

Using the libraries

repositories {
    mavenCentral()
}

dependencies {
    implementation("com.wgtunnel:parser:<version>")
    implementation("com.wgtunnel:backend:<version>")
    // Android
    implementation("com.wgtunnel:backend-android-jni:<version>")
    implementation("com.wgtunnel:hevtunnel:<version>")
}

Replace <version> with the latest Maven Central version.

License

MIT. See LICENSE and NOTICE for third-party components (AmneziaWG, hev-socks5-tunnel, Tailscale-derived desktop firewall/router).

S
Description
No description provided
Readme BSD-3-Clause
1 MiB
0 Stars 0 Watchers 0 Forks
Languages
Go 51.4%
Kotlin 43.6%
C 3.4%
Makefile 1.1%
CMake 0.5%