mirror of
https://github.com/tailscale/tailscale.git
synced 2026-07-17 11:04:40 -04:00
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>