We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 519f8db commit aa36ac4Copy full SHA for aa36ac4
1 file changed
cert/cert.go
@@ -42,7 +42,7 @@ type CA struct {
42
}
43
44
func (ca *CA) getRemoteCert() ([]byte, error) {
45
- var tlsConfig tls.Config
+ var tlsConfig *tls.Config
46
if ca.RootCACert != "" {
47
rootCABytes, err := ioutil.ReadFile(ca.RootCACert)
48
if err != nil {
@@ -54,12 +54,12 @@ func (ca *CA) getRemoteCert() ([]byte, error) {
54
if !ok {
55
return nil, errors.New("failed to parse rootCA certs")
56
57
- tlsConfig = tls.Config{
+ tlsConfig = &tls.Config{
58
RootCAs: rootCaCertPool,
59
60
61
62
- remote := client.NewServerTLS(ca.Remote, &tlsConfig)
+ remote := client.NewServerTLS(ca.Remote, tlsConfig)
63
infoReq := &info.Req{
64
Label: ca.Label,
65
Profile: ca.Profile,
0 commit comments