diff options
author | Vitor Meireles De Sousa <vdesousa@gitlab.com> | 2020-11-17 16:27:14 +0000 |
---|---|---|
committer | Vitor Meireles De Sousa <vdesousa@gitlab.com> | 2020-11-17 16:27:14 +0000 |
commit | c7fd5036f2c6b0945694163511856e61b02938a0 (patch) | |
tree | 82569fee3d111769ccb94f7ef61776bc34b53090 | |
parent | 3f9890ef73dced430d86801a1efc0e93ec50890e (diff) | |
download | gitlab-shell-c7fd5036f2c6b0945694163511856e61b02938a0.tar.gz |
Update httpclient.go with TLS 1.2 as minimum version
-rw-r--r-- | client/httpclient.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/client/httpclient.go b/client/httpclient.go index 05c3032..1ae4420 100644 --- a/client/httpclient.go +++ b/client/httpclient.go @@ -137,6 +137,7 @@ func buildHttpsTransport(hcc httpClientCfg, selfSignedCert bool, gitlabURL strin tlsConfig := &tls.Config{ RootCAs: certPool, InsecureSkipVerify: selfSignedCert, + MinVersion: tls.VersionTLS12, } if hcc.HaveCertAndKey() { |