🎨 下载更新安装包忽略 TLS 证书校验

This commit is contained in:
Liang Ding 2022-12-13 10:46:17 +08:00
parent 4cea235f9f
commit d369d52499
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -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)