tailscale/types/persist
Maisem Ali dd50dcd067 ipn/ipnlocal: handle untagging nodes better
We would end up with duplicate profiles for the node as the UserID
would have chnaged. In order to correctly deduplicate profiles, we
need to look at both the UserID and the NodeID. A single machine can
only ever have 1 profile per NodeID and 1 profile per UserID.

Note: UserID of a Node can change when the node is tagged/untagged,
and the NodeID of a device can change when the node is deleted so we
need to check for both.

Updates #713

Signed-off-by: Maisem Ali <maisem@tailscale.com>
2022-11-18 14:00:19 +05:00
..
persist_clone.go ipn/ipnlocal: handle untagging nodes better 2022-11-18 14:00:19 +05:00
persist_test.go ipn/ipnlocal: handle untagging nodes better 2022-11-18 14:00:19 +05:00
persist_view.go ipn/ipnlocal: handle untagging nodes better 2022-11-18 14:00:19 +05:00
persist.go ipn/ipnlocal: handle untagging nodes better 2022-11-18 14:00:19 +05:00