Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not create PeerHealth new client without credentials
Currently if peerhealth.NewClient is called with no credentials.TransportCredentials it uses a DialOption which disables transport security for this ClientConn. Considering also the in the current code base it is not possible to reach this point without valid credentials, this commit removes the usage of such DialOption and returns with error instead for security reasons. Signed-off-by: Carlo Lobrano <[email protected]>
- Loading branch information