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