mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
services: format ipv6 in nomad service info output
Co-authored-by: Michael Schurter <mschurter@hashicorp.com>
This commit is contained in:
@@ -197,7 +197,7 @@ func formatAddress(address string, port int) string {
|
||||
if port == 0 {
|
||||
return address
|
||||
}
|
||||
return fmt.Sprintf("%s:%d", address, port)
|
||||
return net.JoinHostPort(address, strconv.Itoa(port))
|
||||
}
|
||||
|
||||
// formatOutput produces the verbose output of service registration info for a
|
||||
|
||||
Reference in New Issue
Block a user