mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-04 19:17:37 +08:00
Merge pull request #2492 from zhullyb/master
fix: switch ghproxy.com to mirror.ghproxy.com
This commit is contained in:
commit
9cccd0e39b
@ -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