🎨 下载更新安装包忽略 TLS 证书校验
This commit is contained in:
parent
4cea235f9f
commit
d369d52499
1 changed files with 1 additions and 1 deletions
|
@ -171,7 +171,7 @@ func downloadInstallPkg(pkgURL, checksum string) (err error) {
|
|||
}
|
||||
|
||||
logging.LogInfof("downloading install package [%s]", pkgURL)
|
||||
client := req.C().SetTLSHandshakeTimeout(7 * time.Second).SetTimeout(10 * time.Minute)
|
||||
client := req.C().SetTLSHandshakeTimeout(7 * time.Second).SetTimeout(10 * time.Minute).DisableInsecureSkipVerify()
|
||||
callback := func(info req.DownloadInfo) {
|
||||
progress := fmt.Sprintf("%.2f%%", float64(info.DownloadedSize)/float64(info.Response.ContentLength)*100.0)
|
||||
// logging.LogDebugf("downloading install package [%s %s]", pkgURL, progress)
|
||||
|
|
Loading…
Add table
Reference in a new issue