We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2e5967 commit f561547Copy full SHA for f561547
config/config.go
@@ -71,6 +71,13 @@ func (cfg *config) init(env *AppConfig) error {
71
if err != nil {
72
return err
73
}
74
+ } else if cfg.Env.LNBackendType == "LND" {
75
+ // If no LNDCertFile is provided, clear any stored certificate
76
+ // hex value so that no certificate is used for TLS verification.
77
+ err := cfg.SetUpdate("LNDCertHex", "", "")
78
+ if err != nil {
79
+ return err
80
+ }
81
82
if cfg.Env.LNDMacaroonFile != "" {
83
macBytes, err := os.ReadFile(cfg.Env.LNDMacaroonFile)
0 commit comments