From ce996a5fe6651132d585fbd3a26e39501d760f41 Mon Sep 17 00:00:00 2001 From: Nicolae Leonte Date: Tue, 22 Mar 2022 09:14:11 +0000 Subject: [PATCH] qlight: fix rpc tls client config --- cmd/utils/flags.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index 53566c9a41..d620c22321 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -1915,6 +1915,10 @@ func SetQLightConfig(ctx *cli.Context, nodeCfg *node.Config, ethCfg *ethconfig.C ethCfg.QuorumLightClientRPCTLSCACert = ctx.GlobalString(QuorumLightClientRPCTLSCACertFlag.Name) } + if ctx.GlobalIsSet(QuorumLightClientRPCTLSInsecureSkipVerifyFlag.Name) { + ethCfg.QuorumLightClientRPCTLSInsecureSkipVerify = ctx.GlobalBool(QuorumLightClientRPCTLSInsecureSkipVerifyFlag.Name) + } + if ctx.GlobalIsSet(QuorumLightClientRPCTLSCertFlag.Name) && ctx.GlobalIsSet(QuorumLightClientRPCTLSKeyFlag.Name) { ethCfg.QuorumLightClientRPCTLSCert = ctx.GlobalString(QuorumLightClientRPCTLSCertFlag.Name) ethCfg.QuorumLightClientRPCTLSKey = ctx.GlobalString(QuorumLightClientRPCTLSKeyFlag.Name)