MinVersion
is missing from this TLS configuration GO-S1020MinVersion
is missing from this TLS configuration: tls.Config124 }
125
126 t := common.NewDefaultTransport()
127 t.TLSClientConfig = &tls.Config{InsecureSkipVerify: true}128
129 proxy.Transport = t
130
MinVersion
is missing from this TLS configuration: tls.Config19 }
20
21 if common.DefaultBool(opts.TLS, false) {
22 cn = tls.Client(cn, &tls.Config{})23 }
24
25 if err := common.Pipe(cn, rw); err != nil {
MinVersion
is missing from this TLS configuration: tls.Config26func InsecureHTTPClient() *http.Client {
27 t := NewDefaultTransport()
28
29 t.TLSClientConfig = &tls.Config{30 InsecureSkipVerify: true,
31 }
32
MinVersion
is missing from this TLS configuration. As the default value is
TLS 1.0, which is considered insecure, it is recommended to explicitly set the
MinVersion
to a secure version of TLS, such as VersionTLS13
.
client := &http.Client{
Transport: &http.Transport{
TLSClientConfig: &tls.Config{
KeyLogWriter: w,
Rand: rand{},
InsecureSkipVerify: true,
},
},
}
client := &http.Client{
Transport: &http.Transport{
TLSClientConfig: &tls.Config{
KeyLogWriter: w,
MinVersion: tls.VersionTLS13, // min version set
Rand: rand{},
InsecureSkipVerify: true,
},
},
}