File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -600,12 +600,12 @@ type Config struct {
600
600
// by the policy in ClientAuth.
601
601
ClientCAs * x509.CertPool
602
602
603
- // InsecureSkipVerify controls whether a client verifies the
604
- // server's certificate chain and host name.
605
- // If InsecureSkipVerify is true, TLS accepts any certificate
606
- // presented by the server and any host name in that certificate.
607
- // In this mode, TLS is susceptible to machine-in-the-middle attacks.
608
- // This should be used only for testing .
603
+ // InsecureSkipVerify controls whether a client verifies the server's
604
+ // certificate chain and host name. If InsecureSkipVerify is true, crypto/tls
605
+ // accepts any certificate presented by the server and any host name in that
606
+ // certificate. In this mode, TLS is susceptible to machine-in-the-middle
607
+ // attacks unless custom verification is used. This should be used only for
608
+ // testing or in combination with VerifyConnection or VerifyPeerCertificate .
609
609
InsecureSkipVerify bool
610
610
611
611
// CipherSuites is a list of supported cipher suites for TLS versions up to
You can’t perform that action at this time.
0 commit comments