Files
tailscale/wgengine
Claus Lensbøl 687ac2cc0d ipn/ipnlocal,wgengine/magicsock: send TSMPDiscoAdvert on wg established
Instead of using CallMeMaybe to trigger the sending of TSMPDiscoAdverts,
use a new event trigger based on
https://github.com/tailscale/wireguard-go/pull/67 to send out the
messages once a connection is established (from the perspective of wg).

This does have an issue where a rekey event due to a restart of one node
will not trigger a TSMP disco message being sent from the non-restarting
node, which has the consequence of keeping a connection on DERP until a
connection to control is established or the connection times out from
wireguard (due to no traffic) and a new connection is initiated.

Updates #20081

Signed-off-by: Claus Lensbøl <claus@tailscale.com>
2026-07-08 16:16:09 -04:00
..