Skip to content

Commit

Permalink
chore: fix missing GRPC config
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Mar 6, 2024
1 parent 2ed3da7 commit 1ee6950
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion util/cloud/client.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
package cloud

import (
"crypto/tls"
_ "embed"

"github.com/evcc-io/evcc/util"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials"
)

var (
Expand All @@ -19,7 +21,8 @@ func Connection() (*grpc.ClientConn, error) {
}

var err error
conn, err = grpc.Dial(host)
creds := credentials.NewTLS(new(tls.Config))
conn, err = grpc.Dial(host, grpc.WithTransportCredentials(creds))

return conn, err
}

0 comments on commit 1ee6950

Please sign in to comment.