From 47cf3a75cc21bf6319f40f88507f9497fdbf8043 Mon Sep 17 00:00:00 2001 From: yangkun <750938164@qq.com> Date: Sun, 10 Oct 2021 14:37:53 +0800 Subject: [PATCH] fix 162 function readClientCert expect use local variable 'filename' to read cert file --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 935a36e..d59082d 100644 --- a/main.go +++ b/main.go @@ -150,7 +150,7 @@ func readClientCert(filename string) []tls.Certificate { ) // read client certificate file (must include client private key and certificate) - certFileBytes, err := ioutil.ReadFile(clientCertFile) + certFileBytes, err := ioutil.ReadFile(filename) if err != nil { log.Fatalf("failed to read client certificate file: %v", err) }