lib/config: Change upgrade check URL (fixes #3086)

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3089
This commit is contained in:
Jakob Borg
2016-05-13 09:17:10 +00:00
committed by Audrius Butkevicius
parent 2e9bf0b67c
commit e8b4286c93
3 changed files with 8 additions and 4 deletions

View File

@@ -291,8 +291,6 @@ func convertV12V13(cfg *Configuration) {
}
cfg.Options.GlobalAnnServers = newAddrs
cfg.Version = 13
for i, fcfg := range cfg.Folders {
if fcfg.DeprecatedReadOnly {
cfg.Folders[i].Type = FolderTypeReadOnly
@@ -301,6 +299,12 @@ func convertV12V13(cfg *Configuration) {
}
cfg.Folders[i].DeprecatedReadOnly = false
}
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 = 13
}
func convertV11V12(cfg *Configuration) {