Skip to content

Commit cf287e9

Browse files
committed
lnd: use persisted addrs if not set in config
1 parent 783c887 commit cf287e9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

server.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5595,6 +5595,12 @@ func (s *server) setSelfNode(ctx context.Context, nodePub route.Vertex,
55955595
alias = srcNode.Alias
55965596
}
55975597

5598+
// If the `externalip` is not specified in the config, it means
5599+
// `addrs` will be empty, we'll use the source node's addresses.
5600+
if len(s.cfg.ExternalIPs) == 0 {
5601+
addrs = srcNode.Addresses
5602+
}
5603+
55985604
case errors.Is(err, graphdb.ErrSourceNodeNotSet):
55995605
// If an alias is not specified in the config, we'll use the
56005606
// default, which is the first 10 bytes of the serialized

0 commit comments

Comments
 (0)