From d59fd9c22da2cc866598caa79352d64d2c0cc796 Mon Sep 17 00:00:00 2001 From: Alex Date: Sat, 14 May 2016 22:03:07 +0000 Subject: [PATCH] lib/config: use correct ReleasesURL when upgrading from v0.13-beta GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3096 --- lib/config/config.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/config/config.go b/lib/config/config.go index 5d98e0b1..97809f4b 100644 --- a/lib/config/config.go +++ b/lib/config/config.go @@ -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 }