mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-21 09:11:18 -08:00
tswg now implements wireguard-go's hybrid post-quantum handshake, so the kernel data plane passes wgcfg.PeerConfig.Hybrid to the kernel (as the tswg peer flag TSWGPEER_F_HYBRID), rather than logging that it can't and doing a classic handshake, which a hybrid peer would refuse. Nothing turns hybrid handshakes on yet, so for tests, the new TS_DEBUG_FORCE_HYBRID_HANDSHAKES envknob sets Hybrid for every peer. TestTSWGTailscaledHybridTUN uses it to check kernel mode against wireguard-go, with each initiating, by wireguard-go's hybrid handshake metrics. TestTSWGTailscaledHybridKernel checks kernel mode on both sides. Updates #426 Signed-off-by: Brad Fitzpatrick <[email protected]> Change-Id: Ifa692897cfe44e389a87a2c37800c13e7d1ee08d