浏览代码

etcdmain: use "TrustedCAFile" in grpc_proxy

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
Gyuho Lee 7 年之前
父节点
当前提交
4f1cf30c7d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      etcdmain/grpc_proxy.go

+ 1 - 1
etcdmain/grpc_proxy.go

@@ -275,7 +275,7 @@ func newTLS(ca, cert, key string) *transport.TLSInfo {
 	if ca == "" && cert == "" && key == "" {
 		return nil
 	}
-	return &transport.TLSInfo{CAFile: ca, CertFile: cert, KeyFile: key}
+	return &transport.TLSInfo{TrustedCAFile: ca, CertFile: cert, KeyFile: key}
 }
 
 func mustListenCMux(tlsinfo *transport.TLSInfo) cmux.CMux {