From 6e7fae4fba7d1bf1ed6d81dbf6f2d40ad6b3936e Mon Sep 17 00:00:00 2001 From: Byron Ruth Date: Tue, 15 Jul 2025 08:28:30 -0400 Subject: [PATCH] Add cid to LeafInfo This provides a way to associate to the connection. Signed-off-by: Byron Ruth --- server/monitor.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/monitor.go b/server/monitor.go index 12264d9267c..0b233347dae 100644 --- a/server/monitor.go +++ b/server/monitor.go @@ -2252,6 +2252,7 @@ type LeafzOptions struct { // LeafInfo has detailed information on each remote leafnode connection. type LeafInfo struct { + ID uint64 `json:"id"` Name string `json:"name"` IsSpoke bool `json:"is_spoke"` Account string `json:"account"` @@ -2294,6 +2295,7 @@ func (s *Server) Leafz(opts *LeafzOptions) (*Leafz, error) { for _, ln := range lconns { ln.mu.Lock() lni := &LeafInfo{ + ID: ln.cid, Name: ln.leaf.remoteServer, IsSpoke: ln.isSpokeLeafNode(), Account: ln.acc.Name,