require tls 1.2

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
Jörn Friedrich Dreyer
2024-10-22 10:56:04 +02:00
parent dd66ee19d1
commit 6b97c74c40
5 changed files with 11 additions and 2 deletions
+4 -1
View File
@@ -207,7 +207,10 @@ func client(o clientOptions) error {
for i := 0; i < o.jobs; i++ {
go func(i int) {
tr := &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: o.insecure},
TLSClientConfig: &tls.Config{
MinVersion: tls.VersionTLS12,
InsecureSkipVerify: o.insecure,
},
}
client := &http.Client{Transport: tr}