From cf287e9693ef83970fbf0e4b9c8f6ecfe357b23e Mon Sep 17 00:00:00 2001 From: Abdullahi Yunus Date: Mon, 22 Sep 2025 18:55:41 +0100 Subject: [PATCH] lnd: use persisted addrs if not set in config --- server.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server.go b/server.go index 9c29adf72..b7e498a79 100644 --- a/server.go +++ b/server.go @@ -5595,6 +5595,12 @@ func (s *server) setSelfNode(ctx context.Context, nodePub route.Vertex, alias = srcNode.Alias } + // If the `externalip` is not specified in the config, it means + // `addrs` will be empty, we'll use the source node's addresses. + if len(s.cfg.ExternalIPs) == 0 { + addrs = srcNode.Addresses + } + case errors.Is(err, graphdb.ErrSourceNodeNotSet): // If an alias is not specified in the config, we'll use the // default, which is the first 10 bytes of the serialized