Skip to content

Commit

Permalink
set minTLS version (#473)
Browse files Browse the repository at this point in the history
Signed-off-by: yaron2 <[email protected]>
  • Loading branch information
yaron2 authored Nov 2, 2023
1 parent 29bf88b commit 2a85a7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ func NewClientWithAddressContext(ctx context.Context, address string, opts ...Cl
}

if cOpts.useTLS || strings.Contains(address, "https://") {
option = grpc.WithTransportCredentials(credentials.NewTLS(&tls.Config{}))
option = grpc.WithTransportCredentials(credentials.NewTLS(&tls.Config{MinVersion: tls.VersionTLS12}))
} else {
option = grpc.WithTransportCredentials(insecure.NewCredentials())
}
Expand Down

0 comments on commit 2a85a7b

Please sign in to comment.