mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-31 18:48:08 +00:00 
			
		
		
		
	backport of commit e29d98aadb (#22526)
				
					
				
			Co-authored-by: Nick Cabatoff <ncabatoff@hashicorp.com>
This commit is contained in:
		 hc-github-team-secure-vault-core
					hc-github-team-secure-vault-core
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							264a8622d2
						
					
				
				
					commit
					d34da50876
				
			| @@ -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 | 			// be pointing to the protocol used in the application layer and not to | ||||||
| 			// the transport layer. Hence, setting the fields accordingly. | 			// the transport layer. Hence, setting the fields accordingly. | ||||||
| 			u.Scheme = "http" | 			u.Scheme = "http" | ||||||
| 			u.Host = socket | 			u.Host = "localhost" | ||||||
| 			u.Path = "" | 			u.Path = "" | ||||||
| 		} else { | 		} else { | ||||||
| 			return nil, fmt.Errorf("attempting to specify unix:// address with non-transport transport") | 			return nil, fmt.Errorf("attempting to specify unix:// address with non-transport transport") | ||||||
|   | |||||||
							
								
								
									
										3
									
								
								changelog/22523.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								changelog/22523.txt
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | |||||||
|  | ```release-note:bug | ||||||
|  | api: Fix breakage with UNIX domain socket addresses introduced by newest Go versions as a security fix. | ||||||
|  | ``` | ||||||
		Reference in New Issue
	
	Block a user