benchmark: util.go
allow client to setup TLS with cluster members, without the client having to offer TLS authentication itself
fixes
@@ -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)
