mirror of
https://github.com/juanfont/headscale.git
synced 2026-11-05 13:09:25 +09:00
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:
1 parent
e747f01b49
commit
5ddc442ec3
22 files changed
+183
-57
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user