mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-05-03 01:09:54 -05:00
Fix linter issue (#3211)
Silence the warning about Insecure being true. `Insecure` is not our default configuration, but need it to work in some cases.
This commit is contained in:
@@ -63,7 +63,8 @@ func NewService(opts ...Option) Service {
|
||||
var tlsConf *tls.Config
|
||||
if options.Config.Identity.LDAP.Insecure {
|
||||
tlsConf = &tls.Config{
|
||||
InsecureSkipVerify: true,
|
||||
//nolint:gosec // We need the ability to run with "insecure" (dev/testing)
|
||||
InsecureSkipVerify: options.Config.Identity.LDAP.Insecure,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user