db, state: keep the ephemeral flag a node was created with

The flag moves from the key to the node, so a login with another key no
longer changes it. A user claiming a tagged node still clears it. v1
nodes carry the flag.
This commit is contained in:
Kristoffer Dalby committed 2026-10-28 07:15:54 +00:00
1 parent e747f01b49
commit 5ddc442ec3
22 files changed
+183 -57

No files matched your search

+1 -1
View File
@@ -278,7 +278,7 @@ func (node *Node) ShouldBeOnline() bool {
// IsEphemeral returns if the node is registered as an Ephemeral node.
// https://tailscale.com/docs/features/ephemeral-nodes
func (node *Node) IsEphemeral() bool {
return node.AuthKey != nil && node.AuthKey.Ephemeral
return node.Ephemeral
}
// IPs returns the node's allocated Tailscale addresses. Order is