mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-12 05:37:32 +00:00
ipn: add ability to name profiles
Updates #713 Signed-off-by: Maisem Ali <maisem@tailscale.com>
This commit is contained in:
@@ -174,9 +174,13 @@ func (pm *profileManager) SetPrefs(prefsIn ipn.PrefsView) error {
|
||||
}
|
||||
cp.LocalUserID = pm.currentUserID
|
||||
}
|
||||
if prefs.ProfileName() != "" {
|
||||
cp.Name = prefs.ProfileName()
|
||||
} else {
|
||||
cp.Name = up.LoginName
|
||||
}
|
||||
cp.UserProfile = newPersist.UserProfile
|
||||
cp.NodeID = newPersist.NodeID
|
||||
cp.Name = up.LoginName
|
||||
pm.knownProfiles[cp.ID] = cp
|
||||
pm.currentProfile = cp
|
||||
if err := pm.writeKnownProfiles(); err != nil {
|
||||
|
Reference in New Issue
Block a user