|
|
@ -53,7 +53,7 @@ func dial(c *GRPCConfig) (*grpc.ClientConn, error) {
|
|
|
|
func checkCertificates(c *GRPCConfig) error {
|
|
|
|
func checkCertificates(c *GRPCConfig) error {
|
|
|
|
if c.GRPCTLS {
|
|
|
|
if c.GRPCTLS {
|
|
|
|
certFileEmpty := c.CertFile == ""
|
|
|
|
certFileEmpty := c.CertFile == ""
|
|
|
|
keyFileEmpty := c.CertFile == ""
|
|
|
|
keyFileEmpty := c.KeyFile == ""
|
|
|
|
|
|
|
|
|
|
|
|
// both files need to be empty or both files need to be provided
|
|
|
|
// both files need to be empty or both files need to be provided
|
|
|
|
if certFileEmpty != keyFileEmpty {
|
|
|
|
if certFileEmpty != keyFileEmpty {
|
|
|
|