Skip to content

Commit

Permalink
fix 162
Browse files Browse the repository at this point in the history
function readClientCert expect use local variable 'filename' to read cert file
  • Loading branch information
zuzuviewer committed Oct 10, 2021
1 parent d05e24d commit 47cf3a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 47cf3a7

Please sign in to comment.