From 4c25cfe0c53e3abe9292a93843bfd9224e5e7b1b Mon Sep 17 00:00:00 2001 From: onlyLTY <46625336+onlyLTY@users.noreply.github.com> Date: Wed, 30 Oct 2024 17:51:10 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix():=20=E8=A7=A3=E5=86=B3docker=E6=A3=80?= =?UTF-8?q?=E6=B5=8B=E7=BD=91=E7=BB=9C=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/module/auth.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/module/auth.go b/internal/module/auth.go index 58a00d8..9ec6a94 100644 --- a/internal/module/auth.go +++ b/internal/module/auth.go @@ -18,7 +18,7 @@ const ChallengeHeader = "WWW-Authenticate" const ( DefaultRegistryDomain = "docker.io" DefaultRegistryHost = "index.docker.io" - DefaultAcceleratorHost = "qazxsw.msaber.fun" + DefaultAcceleratorHost = "docker.ketches.cn" ) func GetToken(image types.Image, registryAuth string) (string, error) { @@ -172,7 +172,7 @@ func GetRegistryAddress(imageRef string) (string, error) { } func checkHost(host string) bool { - URL := "https://" + host + URL := "https://" + host + "/v2/" // 创建带有超时设置的 http.Client client := http.Client{ Timeout: 5 * time.Second, @@ -191,7 +191,7 @@ func checkHost(host string) bool { }(resp.Body) // 检查 HTTP 响应状态码 - if resp.StatusCode == http.StatusOK { + if resp.StatusCode == http.StatusOK || resp.StatusCode == http.StatusUnauthorized { return true } From a5ce1b9d79d08842afdc0608f38d28ac661c41b8 Mon Sep 17 00:00:00 2001 From: onlyLTY <46625336+onlyLTY@users.noreply.github.com> Date: Wed, 30 Oct 2024 21:42:32 +0800 Subject: [PATCH 2/2] build(): v2.0.8-zspace --- version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version b/version index bb00c0b..f4dc2a1 100644 --- a/version +++ b/version @@ -1 +1 @@ -v2.0.7-zspace \ No newline at end of file +v2.0.8-zspace \ No newline at end of file