diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ccdbee58..fbe05d30 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -123,7 +123,7 @@ jobs: uses: actions/setup-go@v5 with: go-version: ^1.21.6 - + - name: Setup compiler environment id: info run: | diff --git a/internal/upgrader/upgrade.go b/internal/upgrader/upgrade.go index 74a895aa..81cf3482 100644 --- a/internal/upgrader/upgrade.go +++ b/internal/upgrader/upgrade.go @@ -288,6 +288,14 @@ func (u *Upgrader) DownloadLatestRelease(progressChan chan float64) (tarName str return } + if settings.ServerSettings.GithubProxy != "" { + digest.BrowserDownloadUrl, err = url.JoinPath(settings.ServerSettings.GithubProxy, digest.BrowserDownloadUrl) + if err != nil { + err = errors.Wrap(err, "service.DownloadLatestRelease url.JoinPath error") + return + } + } + resp, err := http.Get(digest.BrowserDownloadUrl) if err != nil {