mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-31 02:28:09 +00:00 
			
		
		
		
	This reverts commit 39bcd5c715.
			
			
This commit is contained in:
		 John-Michael Faircloth
					John-Michael Faircloth
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							a5f6b1cc70
						
					
				
				
					commit
					58b88b8aca
				
			| @@ -37,13 +37,12 @@ func Serve(opts *ServeOpts) error { | ||||
| 		}) | ||||
| 	} | ||||
|  | ||||
| 	// pluginSets is the map of plugins we can dispense. | ||||
| 	// pluginMap is the map of plugins we can dispense. | ||||
| 	pluginSets := map[int]plugin.PluginSet{ | ||||
| 		// Version 3 used to supports both protocols. We want to keep it around | ||||
| 		// since it's possible old plugins built against this version will still | ||||
| 		// work with gRPC. There is currently no difference between version 3 | ||||
| 		// and version 4. | ||||
| 		// AutoMTLS is not supported by versions lower than 5. | ||||
| 		3: { | ||||
| 			"backend": &GRPCBackendPlugin{ | ||||
| 				Factory: opts.BackendFactoryFunc, | ||||
| @@ -56,13 +55,6 @@ func Serve(opts *ServeOpts) error { | ||||
| 				Logger:  logger, | ||||
| 			}, | ||||
| 		}, | ||||
| 		5: { | ||||
| 			"backend": &GRPCBackendPlugin{ | ||||
| 				Factory:           opts.BackendFactoryFunc, | ||||
| 				Logger:            logger, | ||||
| 				AutoMTLSSupported: true, | ||||
| 			}, | ||||
| 		}, | ||||
| 	} | ||||
|  | ||||
| 	err := pluginutil.OptionallyEnableMlock() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user