mirror of
https://github.com/project-zot/zot.git
synced 2026-06-16 04:17:55 +08:00
chore: fix dependabot alerts (#2377)
https://github.com/project-zot/zot/pull/2368 https://github.com/project-zot/zot/pull/2369 https://github.com/project-zot/zot/pull/2370 https://github.com/project-zot/zot/pull/2371 https://github.com/project-zot/zot/pull/2372 https://github.com/project-zot/zot/pull/2373 https://github.com/project-zot/zot/pull/2374 https://github.com/project-zot/zot/pull/2375 https://github.com/project-zot/zot/pull/2376 Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
This commit is contained in:
committed by
GitHub
parent
6f8c058dc6
commit
6b3c160176
+2
-2
@@ -47,7 +47,7 @@ func (lc *LDAPClient) Connect() error {
|
||||
address := fmt.Sprintf("%s:%d", lc.Host, lc.Port)
|
||||
|
||||
if !lc.UseSSL {
|
||||
l, err = ldap.Dial("tcp", address)
|
||||
l, err = ldap.Dial("tcp", address) //nolint:staticcheck
|
||||
if err != nil {
|
||||
lc.Log.Error().Err(err).Str("address", address).Msg("failed to establish a TCP connection")
|
||||
|
||||
@@ -83,7 +83,7 @@ func (lc *LDAPClient) Connect() error {
|
||||
config.Certificates = lc.ClientCertificates
|
||||
// config.BuildNameToCertificate()
|
||||
}
|
||||
l, err = ldap.DialTLS("tcp", address, config)
|
||||
l, err = ldap.DialTLS("tcp", address, config) //nolint:staticcheck
|
||||
if err != nil {
|
||||
lc.Log.Error().Err(err).Str("address", address).Msg("failed to establish a TLS connection")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user