wireguard-go-awg2-lx/device
Leadaxe c4e0bcf768 lx: rebind socket on handshake give-up (sing-box-lx SPEC 041 self-heal)
After ~90s of unanswered handshake initiations (the give-up branch of
expiredRetransmitHandshake) the socket's 5-tuple is proven dead (expired
NAT mapping / poisoned DPI flow entry after device sleep) and upstream
retries into it forever; only a manual reconnect healed the peer.

Reopen the bind once per give-up cycle (fresh ephemeral port unless the
user pinned listen_port), then re-initiate immediately. Debounced via CAS;
no timers or goroutines while healthy; a rebind racing Down()/Close()
degrades to a no-op inside BindUpdate. Red/green e2e + unit tests.
2026-08-05 16:56:04 +03:00
..
allowedips.go device: refactor container locking for lock-order clarity 2026-08-04 19:18:01 +08:00
awg_stdnetbind_reserved_lx_test.go lx: gate reserved-byte clear on receive so AmneziaWG magic survives 2026-08-05 16:55:02 +03:00
channels.go device: convert runtime.SetFinalizer to AddCleanup (#71) 2026-08-04 19:18:01 +08: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.5 2026-08-05 16:53:12 +03:00
device.go lx: rebind socket on handshake give-up (sing-box-lx SPEC 041 self-heal) 2026-08-05 16:56:04 +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
lx_giveup_rebind_test.go lx: rebind socket on handshake give-up (sing-box-lx SPEC 041 self-heal) 2026-08-05 16:56:04 +03:00
lx_giveup_selfheal_test.go lx: rebind socket on handshake give-up (sing-box-lx SPEC 041 self-heal) 2026-08-05 16:56:04 +03:00
lx_ipcget_awg_test.go test(awg): pin IpcGet introspection parity for all 16 obfuscation params 2026-08-05 16:55:41 +03:00
magic-header.go lx: fix transport padding buffer overrun + harden AWG config guards 2026-08-05 16:55:02 +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.5 2026-08-05 16:53:12 +03:00
noise-types.go global: bump copyright notice 2025-05-05 15:05:35 +02:00
obf.go lx: fix transport padding buffer overrun + harden AWG config guards 2026-08-05 16:55:02 +03:00
obf_bytes.go lx: re-graft AmneziaWG 2.0 obfuscation onto sagernet/wireguard-go v0.0.5 2026-08-05 16:53:12 +03:00
obf_data.go lx: re-graft AmneziaWG 2.0 obfuscation onto sagernet/wireguard-go v0.0.5 2026-08-05 16:53:12 +03:00
obf_datasize.go lx: fix transport padding buffer overrun + harden AWG config guards 2026-08-05 16:55:02 +03:00
obf_datastring.go lx: re-graft AmneziaWG 2.0 obfuscation onto sagernet/wireguard-go v0.0.5 2026-08-05 16:53:12 +03:00
obf_guards_test.go lx: gate reserved-byte clear on receive so AmneziaWG magic survives 2026-08-05 16:55:02 +03:00
obf_rand.go lx: fix transport padding buffer overrun + harden AWG config guards 2026-08-05 16:55:02 +03:00
obf_randchars.go lx: fix transport padding buffer overrun + harden AWG config guards 2026-08-05 16:55:02 +03:00
obf_randdigits.go lx: fix transport padding buffer overrun + harden AWG config guards 2026-08-05 16:55:02 +03:00
obf_timestamp.go lx: re-graft AmneziaWG 2.0 obfuscation onto sagernet/wireguard-go v0.0.5 2026-08-05 16:53:12 +03:00
peer.go device: fix TOCTOU race during session state update (#77) 2026-08-04 19:18:01 +08:00
pools.go device: refactor container locking for lock-order clarity 2026-08-04 19:18:01 +08: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.5 2026-08-05 16:53:12 +03:00
send.go lx: fix transport padding buffer overrun + harden AWG config guards 2026-08-05 16:55:02 +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 lx: rebind socket on handshake give-up (sing-box-lx SPEC 041 self-heal) 2026-08-05 16:56:04 +03:00
transport_padding_test.go lx: gate reserved-byte clear on receive so AmneziaWG magic survives 2026-08-05 16:55:02 +03: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.5 2026-08-05 16:53:12 +03:00