浏览代码

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

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3096
Alex 9 年之前
父节点
当前提交
d59fd9c22d
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      lib/config/config.go

+ 4 - 0
lib/config/config.go

@@ -302,6 +302,10 @@ func convertV13V14(cfg *Configuration) {
 		}
 		}
 		cfg.Folders[i].DeprecatedReadOnly = false
 		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
 	cfg.Version = 14
 }
 }