Skip to content

Commit

Permalink
Upgrade TLS in documentation and examples (#433)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anaethelion authored Feb 10, 2022
1 parent 59f5324 commit 61ffcd9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ cfg := elasticsearch.Config{
MaxIdleConnsPerHost: 10,
ResponseHeaderTimeout: time.Second,
TLSClientConfig: &tls.Config{
MinVersion: tls.VersionTLS11,
MinVersion: tls.VersionTLS12,
// ...
},
// ...
Expand Down
2 changes: 1 addition & 1 deletion _examples/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func main() {
ResponseHeaderTimeout: time.Millisecond,
DialContext: (&net.Dialer{Timeout: time.Nanosecond}).DialContext,
TLSClientConfig: &tls.Config{
MinVersion: tls.VersionTLS11,
MinVersion: tls.VersionTLS12,
// ...
},
},
Expand Down
2 changes: 1 addition & 1 deletion doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ To configure the client, pass a Config object to the NewClient function:
ResponseHeaderTimeout: time.Second,
DialContext: (&net.Dialer{Timeout: time.Second}).DialContext,
TLSClientConfig: &tls.Config{
MinVersion: tls.VersionTLS11,
MinVersion: tls.VersionTLS12,
},
},
}
Expand Down
2 changes: 1 addition & 1 deletion elasticsearch_example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func ExampleNewClient() {
ResponseHeaderTimeout: time.Second,
DialContext: (&net.Dialer{Timeout: time.Second}).DialContext,
TLSClientConfig: &tls.Config{
MinVersion: tls.VersionTLS11,
MinVersion: tls.VersionTLS12,
},
},
}
Expand Down
2 changes: 1 addition & 1 deletion elasticsearch_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func TestClientTransport(t *testing.T) {
ResponseHeaderTimeout: time.Second,
DialContext: (&net.Dialer{Timeout: time.Nanosecond}).DialContext,
TLSClientConfig: &tls.Config{
MinVersion: tls.VersionTLS11,
MinVersion: tls.VersionTLS12,
InsecureSkipVerify: true,
},
},
Expand Down

0 comments on commit 61ffcd9

Please sign in to comment.