This commit is contained in:
cdle
2023-07-08 12:57:11 +08:00
parent 4bf46badb4
commit 87e6f98876
11 changed files with 133 additions and 71 deletions
+3 -2
View File
@@ -130,7 +130,9 @@ func Init() {
Message: fmt.Sprintf("当前版本 %s 已是最新,无需升级", compiled_at),
}
}
client = &http.Client{}
client = &http.Client{
Timeout: 30 * time.Second,
}
if transport != nil {
client.Transport = transport
}
@@ -151,7 +153,6 @@ func Init() {
defer resp.Body.Close()
body = resp.Body
goto CREATE
PROXY:
//使用免费代理下载
proxy = true