mirror of
https://github.com/ayflying/p2p.git
synced 2026-03-04 17:29:22 +00:00
使用加速地址更新
This commit is contained in:
@@ -13,7 +13,9 @@ func Boot() {
|
||||
|
||||
getDev, _ := g.Cfg().GetWithEnv(gctx.New(), "dev")
|
||||
if !getDev.Bool() {
|
||||
var update = updateGithub.New("https://api.github.com/repos/ayflying/p2p/releases/latest")
|
||||
url := "https://api.github.com/repos/ayflying/p2p/releases/latest"
|
||||
url = "https://gh-proxy.com/" + url
|
||||
var update = updateGithub.New(url)
|
||||
// 每天0点检查更新
|
||||
gcron.Add(gctx.New(), "0 0 0 * * *", func(ctx context.Context) {
|
||||
err := update.CheckUpdate(true)
|
||||
|
||||
Reference in New Issue
Block a user