mirror of https://github.com/dapr/go-sdk.git
set minTLS version (#473)
Signed-off-by: yaron2 <schneider.yaron@live.com>
This commit is contained in:
parent
29bf88b1b0
commit
2a85a7bb6a
|
|
@ -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())
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue