mapper: show an expired peer online, without endpoints or DERP

A connected expired node shows online to its peers. Neither its map
entry nor endpoint, DERP or disco patches carry the paths to reach it.
This commit is contained in:
Kristoffer Dalby committed 2026-11-02 19:15:40 +01:00
1 parent 99e8a9228a
commit 3038aa907a
9 files changed
+39 -70

No files matched your search

+4 -2
View File
@@ -1266,11 +1266,13 @@ func TestExpireNode(t *testing.T) {
return
}
assert.True(c, expired.Expired)
assert.False(c, expired.Online)
// It keeps its control connection, so it stays online to
// its peers, as on Tailscale SaaS.
assert.True(c, expired.Online)
if assert.NotNil(c, expired.KeyExpiry) {
assert.True(c, expired.KeyExpiry.Before(time.Now()))
}
}, integrationutil.StatusReadyTimeout, integrationutil.FastPoll, "peer must see the expired node offline")
}, integrationutil.StatusReadyTimeout, integrationutil.FastPoll, "peer must see the expired node expired and online")
require.EventuallyWithT(t, func(c *assert.CollectT) {
_, stderr, _ := peer.Execute([]string{"tailscale", "ping", node.Name})