diff --git a/nats-top.go b/nats-top.go index 43fcb59..be551de 100644 --- a/nats-top.go +++ b/nats-top.go @@ -215,7 +215,7 @@ func generateParagraph( hostname = addr } } else { - hostname = fmt.Sprintf("%s:%d", hostname, conn.Port) + hostname = fmt.Sprintf("%s:%d", conn.IP, conn.Port) } // host