1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #39507 from thaJeztah/cleanup_socket_addr

Cleanup "address" when connecting over a UNIX socket
This commit is contained in:
Akihiro Suda 2019-07-16 02:57:30 +09:00 committed by GitHub
commit 84edfb216a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -656,7 +656,9 @@ func (d *Daemon) getClientConfig() (*clientConfig, error) {
return nil, err
}
transport.DisableKeepAlives = true
if proto == "unix" {
addr = filepath.Base(addr)
}
return &clientConfig{
transport: transport,
scheme: scheme,