Browse Source

benchmark: util.go

allow client to setup TLS with cluster members, without the client having to offer TLS authentication itself

fixes #10142
Mark Petrovic 7 years ago
parent
commit
95a282efb5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tools/benchmark/cmd/util.go

+ 1 - 1
tools/benchmark/cmd/util.go

@@ -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)