wireguard-go-awg2-lx/device
Leadaxe 3909adbf87 lx: early rebind and wake nudge for provably dead sessions (sing-box-lx SPEC 041 v2)
The v1 give-up rebind heals a dead 5-tuple only at ~90s, while users probe
within the first seconds after device wake. Two new triggers over the same
action and shared debounce window:

- early: >=3 unanswered initiations against a provably dead session (no live
  keypair, or last handshake older than RejectAfterTime) rebind at ~15s from
  the retry branch; a live session keeps byte-for-byte upstream behaviour;
- nudge: public Device.RebindIfSessionStale() lets the consumer report a
  device wake-up and heal stale peers immediately, without traffic demand.

The whole mechanism now lives in device/lx_giveup_rebind.go (moved from
device.go to keep the upstream file delta minimal); the rebind log line
carries the trigger label.
2026-08-05 16:56:12 +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: early rebind and wake nudge for provably dead sessions (sing-box-lx SPEC 041 v2) 2026-08-05 16:56:12 +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_early_rebind_test.go lx: early rebind and wake nudge for provably dead sessions (sing-box-lx SPEC 041 v2) 2026-08-05 16:56:12 +03:00
lx_giveup_rebind.go lx: early rebind and wake nudge for provably dead sessions (sing-box-lx SPEC 041 v2) 2026-08-05 16:56:12 +03: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
lx_stale_rebind_test.go lx: early rebind and wake nudge for provably dead sessions (sing-box-lx SPEC 041 v2) 2026-08-05 16:56:12 +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: early rebind and wake nudge for provably dead sessions (sing-box-lx SPEC 041 v2) 2026-08-05 16:56:12 +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