瀏覽代碼

Merge pull request #3377 from yichengq/tls-info-string

pkg/transport: print ClientCertAuth in TLSInfo.String()
Yicheng Qin 10 年之前
父節點
當前提交
76db9747f8
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      pkg/transport/listener.go

+ 1 - 1
pkg/transport/listener.go

@@ -78,7 +78,7 @@ type TLSInfo struct {
 }
 }
 
 
 func (info TLSInfo) String() string {
 func (info TLSInfo) String() string {
-	return fmt.Sprintf("cert = %s, key = %s, ca = %s, trusted-ca = %s", info.CertFile, info.KeyFile, info.CAFile, info.TrustedCAFile)
+	return fmt.Sprintf("cert = %s, key = %s, ca = %s, trusted-ca = %s, client-cert-auth = %v", info.CertFile, info.KeyFile, info.CAFile, info.TrustedCAFile, info.ClientCertAuth)
 }
 }
 
 
 func (info TLSInfo) Empty() bool {
 func (info TLSInfo) Empty() bool {