mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
benchmark: util.go
allow client to setup TLS with cluster members, without the client having to offer TLS authentication itself fixes #10142
This commit is contained in:
parent
051b119cd3
commit
95a282efb5
@ -96,7 +96,7 @@ func mustCreateConn() *clientv3.Client {
|
||||
Endpoints: connEndpoints,
|
||||
DialTimeout: dialTimeout,
|
||||
}
|
||||
if !tls.Empty() {
|
||||
if !tls.Empty() || tls.TrustedCAFile != "" {
|
||||
cfgtls, err := tls.ClientConfig()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "bad tls config: %v\n", err)
|
||||
|
Loading…
x
Reference in New Issue
Block a user