diff --git a/api/client.go b/api/client.go index d20477e1d..1e720196d 100644 --- a/api/client.go +++ b/api/client.go @@ -535,7 +535,7 @@ func (c *Config) ParseAddress(address string) (*url.URL, error) { // be pointing to the protocol used in the application layer and not to // the transport layer. Hence, setting the fields accordingly. u.Scheme = "http" - u.Host = socket + u.Host = "localhost" u.Path = "" } else { return nil, fmt.Errorf("attempting to specify unix:// address with non-transport transport") diff --git a/changelog/22523.txt b/changelog/22523.txt new file mode 100644 index 000000000..e53ab652b --- /dev/null +++ b/changelog/22523.txt @@ -0,0 +1,3 @@ +```release-note:bug +api: Fix breakage with UNIX domain socket addresses introduced by newest Go versions as a security fix. +```