mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-16 19:14:41 -07:00
Merge pull request #455 from nats-io/fix_gosimple_error
Fix gosimple report
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user