lib/config: use correct ReleasesURL when upgrading from v0.13-beta

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3096
This commit is contained in:
Alex 2016-05-14 22:03:07 +00:00 committed by Jakob Borg
parent 6f743f3138
commit d59fd9c22d
1 changed files with 4 additions and 0 deletions

View File

@ -302,6 +302,10 @@ func convertV13V14(cfg *Configuration) {
}
cfg.Folders[i].DeprecatedReadOnly = false
}
// v0.13-beta already had config version 13 but did not get the new URL
if cfg.Options.ReleasesURL == "https://api.github.com/repos/syncthing/syncthing/releases?per_page=30" {
cfg.Options.ReleasesURL = "https://upgrades.syncthing.net/meta.json"
}
cfg.Version = 14
}