tNew errors should not be capitalized. - tlstun - simple go program to add tls support to other listeners
HTML git clone https://git.parazyd.org/tlstun
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 9eafb026d57f43fd31bd1b6cf6428cb3ca55043e
DIR parent 9055b2295753d7aaa61a2333e3091b5845d20c8d
HTML Author: parazyd <parazyd@dyne.org>
Date: Wed, 10 Jul 2019 02:16:02 +0200
New errors should not be capitalized.
Diffstat:
M tlstun.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/tlstun.go b/tlstun.go
t@@ -57,7 +57,7 @@ func tlsConfig(cert, key string) (*tls.Config, error) {
return nil, err
}
if !certpool.AppendCertsFromPEM(pem) {
- return nil, errors.New("Cannot parse client certificate authority")
+ return nil, errors.New("can not parse client certificate authority")
}
tlscfg.ClientCAs = certpool
tlscfg.ClientAuth = tls.RequireAndVerifyClientCert