From d369d524990c2719462701f9dd781e7b22723c61 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Tue, 13 Dec 2022 10:46:17 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E4=B8=8B=E8=BD=BD=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E5=AE=89=E8=A3=85=E5=8C=85=E5=BF=BD=E7=95=A5=20TLS=20=E8=AF=81?= =?UTF-8?q?=E4=B9=A6=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/updater.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/model/updater.go b/kernel/model/updater.go index a9c19176f..f2f74f090 100644 --- a/kernel/model/updater.go +++ b/kernel/model/updater.go @@ -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)