mirror of
https://github.com/RubyMetric/chsrc.git
synced 2025-02-02 14:41:18 +08:00
Adjust go mirror site order
This commit is contained in:
parent
8a8483870b
commit
545c8e17f4
3
chsrc.c
3
chsrc.c
|
@ -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;
|
||||
|
|
7
chsrc.h
7
chsrc.h
|
@ -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"}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user