tstest/natlab: add test for no control and rotated disco key (#18261)

Updates #12639

Signed-off-by: Claus Lensbøl <claus@tailscale.com>
This commit is contained in:
Claus Lensbøl
2026-03-05 16:00:36 -05:00
committed by GitHub
parent c17ec8ce1c
commit 9657a93217
4 changed files with 140 additions and 29 deletions
+1
View File
@@ -4266,6 +4266,7 @@ func (c *Conn) HandleDiscoKeyAdvertisement(node tailcfg.NodeView, update packet.
// If the key did not change, count it and return.
if oldDiscoKey.Compare(discoKey) == 0 {
metricTSMPDiscoKeyAdvertisementUnchanged.Add(1)
c.logf("magicsock: disco key did not change for node %v", nodeKey.ShortString())
return
}
c.discoInfoForKnownPeerLocked(discoKey)