Fix gosimple report

This commit is contained in:
Ivan Kozlovic
2017-03-22 22:52:33 -06:00
parent 902fb62166
commit a804516540

View File

@@ -149,7 +149,7 @@ func (c *client) processRouteInfo(info *Info) {
addr := conn.RemoteAddr().(*net.TCPAddr)
info.IP = fmt.Sprintf("nats-route://%s/", net.JoinHostPort(addr.IP.String(), strconv.Itoa(info.Port)))
default:
info.IP = fmt.Sprintf("%s", c.route.url)
info.IP = c.route.url.String()
}
c.mu.Unlock()
// Now let the known servers know about this new route