Merge pull request #8588 from dqminh/remove-sslv3
remove sslv3 from server's TLS supported versionsmaster
						commit
						4c89bdaba2
					
				| 
						 | 
				
			
			@ -36,7 +36,11 @@ const (
 | 
			
		|||
)
 | 
			
		||||
 | 
			
		||||
func newClient(jar http.CookieJar, roots *x509.CertPool, cert *tls.Certificate, timeout TimeoutType) *http.Client {
 | 
			
		||||
	tlsConfig := tls.Config{RootCAs: roots}
 | 
			
		||||
	tlsConfig := tls.Config{
 | 
			
		||||
		RootCAs: roots,
 | 
			
		||||
		// Avoid fallback to SSL protocols < TLS1.0
 | 
			
		||||
		MinVersion: tls.VersionTLS10,
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if cert != nil {
 | 
			
		||||
		tlsConfig.Certificates = append(tlsConfig.Certificates, *cert)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue