diff options
| author | Aaron Klotz <aaron@tailscale.com> | 2023-02-28 13:08:56 -0700 |
|---|---|---|
| committer | Aaron Klotz <aaron@tailscale.com> | 2023-02-28 13:11:47 -0700 |
| commit | ffb37f54c8169b50d97baad19aa59cd2c6b6810d (patch) | |
| tree | 7983aec8009b5e69c79b9e8678094062e69bec6a | |
| parent | 780c56e119f63cd9dcd622c2bcaf12a3ca309eca (diff) | |
| download | tailscale-aaron/migrate_windows.tar.xz tailscale-aaron/migrate_windows.zip | |
ipn/ipnlocal: remove windows exception from profile migrationaaron/migrate_windows
The check in question results in profiles never being migrated to backend
prefs on Windows clients. We should be doing that on Windows too.
This should be save vis-a-vis unattended mode since we won't see the
unmigrated prefs until the GUI signs in.
Fixes #7398
Signed-off-by: Aaron Klotz <aaron@tailscale.com>
| -rw-r--r-- | ipn/ipnlocal/profiles.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipn/ipnlocal/profiles.go b/ipn/ipnlocal/profiles.go index 8d70494e8..8abea4cc1 100644 --- a/ipn/ipnlocal/profiles.go +++ b/ipn/ipnlocal/profiles.go @@ -534,7 +534,7 @@ func newProfileManagerWithGOOS(store ipn.StateStore, logf logger.Logf, goos stri if err := pm.setPrefsLocked(prefs); err != nil { return nil, err } - } else if len(knownProfiles) == 0 && goos != "windows" { + } else if len(knownProfiles) == 0 { // No known profiles, try a migration. if err := pm.migrateFromLegacyPrefs(); err != nil { return nil, err |
