From 16316ba89e735780ed4351e389b85de419694cd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?An=C5=BEe=20Jen=C5=A1terle?= Date: Sun, 5 Apr 2020 18:33:52 +0200 Subject: [PATCH] Set HTTPS TLS renegotiation to "once as client" --- utils/utils.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/utils/utils.go b/utils/utils.go index 65ec0b73..2e3624e5 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -5,7 +5,6 @@ import ( "crypto/tls" "errors" "fmt" - "github.com/ararog/timeago" "io" "io/ioutil" "net" @@ -15,6 +14,8 @@ import ( "strconv" "strings" "time" + + "github.com/ararog/timeago" ) var ( @@ -269,6 +270,7 @@ func HttpRequest(url, method string, content interface{}, headers []string, body TLSClientConfig: &tls.Config{ InsecureSkipVerify: !verifySSL, ServerName: verifyHost, + Renegotiation: tls.RenegotiateOnceAsClient, }, DisableKeepAlives: true, ResponseHeaderTimeout: timeout,