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:
		
						commit
						84edfb216a
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -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,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue