[client] Reinject captured first packet on lazy connection activation (#6572)

This commit is contained in:
Viktor Liu
2026-06-30 11:22:25 +02:00
committed by GitHub
parent 5b5f11740a
commit 4ef65294e9
15 changed files with 169 additions and 36 deletions
+5
View File
@@ -18,4 +18,9 @@ type Proxy interface {
RedirectAs(endpoint *net.UDPAddr)
CloseConn() error
SetDisconnectListener(disconnected func())
// InjectPacket writes a raw packet directly to the remote peer over the underlying transport,
// bypassing WireGuard. Used to replay the captured lazyconn handshake initiation. Only the
// kernel-mode proxies act on it; the userspace proxy is a no-op since reinjection is kernel-only.
InjectPacket(b []byte) error
}