Adjust go mirror site order

This commit is contained in:
Aoran Zeng 2023-09-04 14:48:13 +08:00
parent 8a8483870b
commit 545c8e17f4
2 changed files with 5 additions and 5 deletions

View File

@ -107,7 +107,7 @@ test_speed (const char* url)
char* curl_cmd = xy_strjoin(4, "curl -qsL -o ", xy_os_devnull, " -w \"%{http_code} %{speed_download}\" -m8 -A chsrc/" Chsrc_Version
" ", url);
xy_info (xy_2strjoin("chsrc: 测速 ", url));
// xy_info (xy_2strjoin("chsrc: 测速 ", url));
FILE* fp = popen(curl_cmd, "r");
char buf[64] = {0};
@ -149,6 +149,7 @@ common_cesu_ (source_info* sources, size_t size)
xy_warn ("chsrc: 跳过该站点");
speed = 0;
} else {
xy_info (xy_2strjoin("chsrc: 测速 ", src.mirror->site));
speed = test_speed (url);
}
speeds[i] = speed;

View File

@ -218,14 +218,13 @@ pl_julia_sources[] = {
/**
* 2023-08-30
* 2023-09-04
*
* TODO: 1. Go用户协助
* 2.
* TODO: 1.
*/
pl_go_sources[] = {
{&Ali, "https://mirrors.aliyun.com/goproxy/"},
{&GoProxyCN, "https://goproxy.cn"},
{&Ali, "https://mirrors.aliyun.com/goproxy/"},
{&GoProxyIO, "https://goproxy.io"}
},