mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-08 14:57:38 +02:00
lnd+config: add TLSExtraDomain to config
Self explanatory. Needed for NodeJS, as the grpc library only allows TLS connections to domains and not IP addresses.
This commit is contained in:
committed by
Olaoluwa Osuntokun
parent
6d07b865d6
commit
237ed4fc6e
3
lnd.go
3
lnd.go
@@ -683,6 +683,9 @@ func genCertPair(certFile, keyFile string) error {
|
||||
if host != "localhost" {
|
||||
dnsNames = append(dnsNames, "localhost")
|
||||
}
|
||||
if cfg.TLSExtraDomain != "" {
|
||||
dnsNames = append(dnsNames, cfg.TLSExtraDomain)
|
||||
}
|
||||
|
||||
// Generate a private key for the certificate.
|
||||
priv, err := ecdsa.GenerateKey(elliptic.P256(), rand.Reader)
|
||||
|
Reference in New Issue
Block a user