Merge branch 'main' into dev

This commit is contained in:
Derek Collison
2023-02-28 15:17:24 -08:00
15 changed files with 358 additions and 231 deletions

View File

@@ -2096,6 +2096,7 @@ type LeafzOptions struct {
// LeafInfo has detailed information on each remote leafnode connection.
type LeafInfo struct {
Name string `json:"name"`
Account string `json:"account"`
IP string `json:"ip"`
Port int `json:"port"`
@@ -2135,6 +2136,7 @@ func (s *Server) Leafz(opts *LeafzOptions) (*Leafz, error) {
for _, ln := range lconns {
ln.mu.Lock()
lni := &LeafInfo{
Name: ln.opts.Name,
Account: ln.acc.Name,
IP: ln.host,
Port: int(ln.port),