mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-04 19:17:37 +08:00
fix: switch ghproxy.com to mirror.ghproxy.com
ghproxy.com 已经被墙,根据其网页上的通知应当更换为二级域名 mirror.ghproxy.com,或考虑使用别的反代服务
This commit is contained in:
parent
fcf79ded58
commit
e1a4293ee6
@ -487,7 +487,7 @@ func getRemoteLatestProtocolVersion(protocolType int) ([]byte, error) {
|
|||||||
}
|
}
|
||||||
response, err := download.Request{URL: url}.Bytes()
|
response, err := download.Request{URL: url}.Bytes()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return download.Request{URL: "https://ghproxy.com/" + url}.Bytes()
|
return download.Request{URL: "https://mirror.ghproxy.com/" + url}.Bytes()
|
||||||
}
|
}
|
||||||
return response, nil
|
return response, nil
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user