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,