wireguard-go-awg2-lx/device
Leadaxe e5feca7d61 lx: re-graft AmneziaWG 2.0 obfuscation onto sagernet/wireguard-go v0.0.3
Migrate the AmneziaWG graft from the old sagernet base (506b763) onto v0.0.3,
the base sing-box 1.14 uses. Strategy: start from v0.0.3, copy the net-new
obfuscation files verbatim from the proven graft (27290b6), take the 6 modified
device/ files wholesale from the graft, keep all tun/* and conn/* from v0.0.3.

Net-new (copied from 27290b6): device/magic-header.go + device/obf*.go (9).
Modified (from 27290b6): device/{send,receive,uapi,device,noise-protocol,cookie}.go.
  - receive.go: reverted two Go-1.22 'range int' loops to the v0.0.3 form (go 1.20).
  - cookie.go: keeps the 4-arg CreateReply(msgType) the grafted send.go calls.
  - noise-protocol.go: MessageEncapsulatingTransportSize=0 (AWG composes without
    the sagernet Bind.Send headroom prepend).

§010 android UDP_GRO guard (fb8d8d8) intentionally DROPPED: v0.0.3 fixes the
receive split-brain at source — bind_std.go now gates all 5 RX/offload paths on
linux||android, and gso_linux.go splits coalesced packets on android. Re-inserting
the guard would disable a now-working android RX-offload path. Requires on-device
re-verification before release.

go.mod: go 1.20, golang.org/x/sys v0.21.0 (v0.0.3 baseline). No amnezia-vpn import
paths remain. Builds clean for linux/android/windows/darwin (library packages).
2026-06-23 02:31:21 +03:00
..
allowedips.go device: add support for removing allowedips individually 2025-05-20 23:03:06 +02:00
channels.go global: bump copyright notice 2025-05-05 15:05:35 +02:00
constants.go Apply Tailscale bind send headroom 2026-05-17 20:36:35 +08:00
cookie.go lx: re-graft AmneziaWG 2.0 obfuscation onto sagernet/wireguard-go v0.0.3 2026-06-23 02:31:21 +03:00
device.go lx: re-graft AmneziaWG 2.0 obfuscation onto sagernet/wireguard-go v0.0.3 2026-06-23 02:31:21 +03:00
devicestate_string.go device: remove deviceStateNew 2021-02-09 15:39:19 +01:00
indextable.go global: bump copyright notice 2025-05-05 15:05:35 +02:00
ip.go global: bump copyright notice 2025-05-05 15:05:35 +02:00
keypair.go Rename module 2026-05-17 20:09:28 +08:00
logger.go global: bump copyright notice 2025-05-05 15:05:35 +02:00
magic-header.go lx: re-graft AmneziaWG 2.0 obfuscation onto sagernet/wireguard-go v0.0.3 2026-06-23 02:31:21 +03:00
mobilequirks.go global: bump copyright notice 2025-05-05 15:05:35 +02:00
noise-helpers.go global: bump copyright notice 2025-05-05 15:05:35 +02:00
noise-protocol.go lx: re-graft AmneziaWG 2.0 obfuscation onto sagernet/wireguard-go v0.0.3 2026-06-23 02:31:21 +03:00
noise-types.go global: bump copyright notice 2025-05-05 15:05:35 +02:00
obf.go lx: re-graft AmneziaWG 2.0 obfuscation onto sagernet/wireguard-go v0.0.3 2026-06-23 02:31:21 +03:00
obf_bytes.go lx: re-graft AmneziaWG 2.0 obfuscation onto sagernet/wireguard-go v0.0.3 2026-06-23 02:31:21 +03:00
obf_data.go lx: re-graft AmneziaWG 2.0 obfuscation onto sagernet/wireguard-go v0.0.3 2026-06-23 02:31:21 +03:00
obf_datasize.go lx: re-graft AmneziaWG 2.0 obfuscation onto sagernet/wireguard-go v0.0.3 2026-06-23 02:31:21 +03:00
obf_datastring.go lx: re-graft AmneziaWG 2.0 obfuscation onto sagernet/wireguard-go v0.0.3 2026-06-23 02:31:21 +03:00
obf_rand.go lx: re-graft AmneziaWG 2.0 obfuscation onto sagernet/wireguard-go v0.0.3 2026-06-23 02:31:21 +03:00
obf_randchars.go lx: re-graft AmneziaWG 2.0 obfuscation onto sagernet/wireguard-go v0.0.3 2026-06-23 02:31:21 +03:00
obf_randdigits.go lx: re-graft AmneziaWG 2.0 obfuscation onto sagernet/wireguard-go v0.0.3 2026-06-23 02:31:21 +03:00
obf_timestamp.go lx: re-graft AmneziaWG 2.0 obfuscation onto sagernet/wireguard-go v0.0.3 2026-06-23 02:31:21 +03:00
peer.go Apply Tailscale bind send headroom 2026-05-17 20:36:35 +08:00
pools.go global: bump copyright notice 2025-05-05 15:05:35 +02:00
queueconstants_android.go Rename module 2026-05-17 20:09:28 +08:00
queueconstants_default.go Rename module 2026-05-17 20:09:28 +08:00
queueconstants_ios.go global: bump copyright notice 2025-05-05 15:05:35 +02:00
queueconstants_windows.go global: bump copyright notice 2025-05-05 15:05:35 +02:00
receive.go lx: re-graft AmneziaWG 2.0 obfuscation onto sagernet/wireguard-go v0.0.3 2026-06-23 02:31:21 +03:00
send.go lx: re-graft AmneziaWG 2.0 obfuscation onto sagernet/wireguard-go v0.0.3 2026-06-23 02:31:21 +03:00
sticky_default.go Rename module 2026-05-17 20:09:28 +08:00
sticky_linux.go Rename module 2026-05-17 20:09:28 +08:00
timers.go Add pause support 2026-05-17 20:36:45 +08:00
tun.go Rename module 2026-05-17 20:09:28 +08:00
uapi.go lx: re-graft AmneziaWG 2.0 obfuscation onto sagernet/wireguard-go v0.0.3 2026-06-23 02:31:21 +03:00