Pārlūkot izejas kodu

Merge pull request #10145 from ae6rt/issue/10142

benchmark: util.go
Xiang Li 7 gadi atpakaļ
vecāks
revīzija
b8969dea0b
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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)