clientagentcmd: use "localhost" to call client agent (#4816)

The client agent serves on "localhost:9300" by default. It appears
on some systems this resolves to ::1:9300 and on some systems
127.0.0.1:9300. We should use the same address on the client
as the server to avoid any incompatibilities between systems.
pull/4823/head
Johan Brandhorst-Satzkorn 2 years ago committed by GitHub
parent a1391db090
commit ec289420d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -68,5 +68,5 @@ func (c *ClientAgentCommand) Run(args []string) int {
// clientAgentUrl constructs the full URL for a client agent request given a port and path.
func clientAgentUrl(port uint, path string) string {
return fmt.Sprintf("http://127.0.0.1:%d/%s", port, path)
return fmt.Sprintf("http://localhost:%d/%s", port, path)
}

Loading…
Cancel
Save