Skip to content
This repository was archived by the owner on Jul 16, 2024. It is now read-only.

【建议】能否更换一下国内镜像源 #14

Open
scarlett518 opened this issue Jun 24, 2024 · 3 comments
Open

【建议】能否更换一下国内镜像源 #14

scarlett518 opened this issue Jun 24, 2024 · 3 comments

Comments

@scarlett518
Copy link

scarlett518 commented Jun 24, 2024

国内测试的时候有的机器下载测试软件很慢。到50%左右就停了,等待很长时间下载完会后还会提示校验失败。

# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #
#            专用于服务器的GB5测试             #
#                 v2024-05-08                  #
#         bash <(curl -sL bash.icu/gb5)        #
#         https://github.com/i-abc/gb5         #
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #

loc: CN
使用镜像源
测试软件下载中
########################################                                                                    38.0%curl: (18) transfer closed with 57778060 bytes remaining to read


经比对,下载的程序与官网SHA-256不相同,退出脚本执行
事关重大,方便的话麻烦到 https://github.com/i-abc/gb5 提一个issue
@i-abc
Copy link
Owner

i-abc commented Jun 24, 2024

请问这是哪家网络运营商/云服务器商?

@scarlett518
Copy link
Author

scarlett518 commented Jun 24, 2024

请问这是哪家网络运营商/云服务器商?

京东云,刚刚试了腾讯云也下的很慢甚至卡住

@scarlett518
Copy link
Author

scarlett518 commented Jun 24, 2024

用cf workers搭建了一个反向代理来加速cdn.geekbench.com效果不错,分享一下代码,之后也能设置优选进行加速

export default {
    async fetch(request, env) {
      let url = new URL(request.url);
      if (url.pathname.startsWith('/')) {
        url.hostname="cdn.geekbench.com"; /*改为你需要加速的主机名A(非Cloudlfare服务的域名也可以)*/
        let new_request=new Request(url,request);
        return fetch(new_request);
      }
      return env.ASSETS.fetch(request);
    }
  };

参考:https://blog.akiss.eu.org/special-cf-acceleration/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants