mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 12:25:53 +02:00
fix mysql client certificate support (#3575)
This commit is contained in:
parent
7e280b23af
commit
4004868245
2 changed files with 53 additions and 8 deletions
|
@ -82,7 +82,11 @@ func NewClient(ctx context.Context, config *csconfig.DatabaseCfg) (*Client, erro
|
|||
}
|
||||
}
|
||||
|
||||
drv, err := getEntDriver(typ, dia, config.ConnectionString(), config)
|
||||
dbConnectionString, err := config.ConnectionString()
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to generate DB connection string: %w", err)
|
||||
}
|
||||
drv, err := getEntDriver(typ, dia, dbConnectionString, config)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed opening connection to %s: %w", config.Type, err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue