From e79be21f324b8b11b12c2c5564edcef5caa4795c Mon Sep 17 00:00:00 2001 From: pierreavn Date: Wed, 1 Jan 2025 17:31:27 +0100 Subject: [PATCH] Handled insecure targets --- verdex/assets/fetch.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/verdex/assets/fetch.go b/verdex/assets/fetch.go index 5bbf897..af0acd8 100644 --- a/verdex/assets/fetch.go +++ b/verdex/assets/fetch.go @@ -1,6 +1,7 @@ package assets import ( + "crypto/tls" "fmt" "io" "net/http" @@ -17,7 +18,9 @@ var userAgent = "Verdex - Open-Source scanning project" var assets = syncmap.Map{} var client = &http.Client{ - Transport: &http.Transport{}, + Transport: &http.Transport{ + TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, + }, } // Fetch asset at given URL