backport of commit e29d98aadb6557921e5d509f3b967e3262f22cb9 (#22526)
Co-authored-by: Nick Cabatoff <ncabatoff@hashicorp.com>
This commit is contained in:
parent
dfa43e537d
commit
50bd40ec02
|
@ -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")
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
```release-note:bug
|
||||
api: Fix breakage with UNIX domain socket addresses introduced by newest Go versions as a security fix.
|
||||
```
|
Loading…
Reference in New Issue