mirror of
https://github.com/hashicorp/vault.git
synced 2026-02-03 20:40:45 -05:00
revert call to ServeMultiplex for pki and transit
This commit is contained in:
parent
9a8bd53378
commit
755be28d14
2 changed files with 4 additions and 8 deletions
|
|
@ -17,11 +17,9 @@ func main() {
|
|||
tlsConfig := apiClientMeta.GetTLSConfig()
|
||||
tlsProviderFunc := api.VaultPluginTLSProvider(tlsConfig)
|
||||
|
||||
if err := plugin.ServeMultiplex(&plugin.ServeOpts{
|
||||
if err := plugin.Serve(&plugin.ServeOpts{
|
||||
BackendFactoryFunc: pki.Factory,
|
||||
// set the TLSProviderFunc so that the plugin maintains backwards
|
||||
// compatibility with Vault versions that don’t support plugin AutoMTLS
|
||||
TLSProviderFunc: tlsProviderFunc,
|
||||
TLSProviderFunc: tlsProviderFunc,
|
||||
}); err != nil {
|
||||
logger := hclog.New(&hclog.LoggerOptions{})
|
||||
|
||||
|
|
|
|||
|
|
@ -17,11 +17,9 @@ func main() {
|
|||
tlsConfig := apiClientMeta.GetTLSConfig()
|
||||
tlsProviderFunc := api.VaultPluginTLSProvider(tlsConfig)
|
||||
|
||||
if err := plugin.ServeMultiplex(&plugin.ServeOpts{
|
||||
if err := plugin.Serve(&plugin.ServeOpts{
|
||||
BackendFactoryFunc: transit.Factory,
|
||||
// set the TLSProviderFunc so that the plugin maintains backwards
|
||||
// compatibility with Vault versions that don’t support plugin AutoMTLS
|
||||
TLSProviderFunc: tlsProviderFunc,
|
||||
TLSProviderFunc: tlsProviderFunc,
|
||||
}); err != nil {
|
||||
logger := hclog.New(&hclog.LoggerOptions{})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue