diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2024-10-31 20:05:54 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-31 12:05:54 +0000 |
commit | 5e6523aa57771f672dc0e8fb06431d4032308f23 (patch) | |
tree | 7fe31e46fc08922942c5141f8f93262b0b418607 /services | |
parent | 9914c9ab08d72434ea55e4c53a1b4528fdadc181 (diff) | |
download | gitea-5e6523aa57771f672dc0e8fb06431d4032308f23.tar.gz gitea-5e6523aa57771f672dc0e8fb06431d4032308f23.zip |
Update go dependencies (#32389)
Diffstat (limited to 'services')
-rw-r--r-- | services/auth/source/ldap/source_search.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/services/auth/source/ldap/source_search.go b/services/auth/source/ldap/source_search.go index 2a61386ae1..b20c90e791 100644 --- a/services/auth/source/ldap/source_search.go +++ b/services/auth/source/ldap/source_search.go @@ -117,10 +117,10 @@ func dial(source *Source) (*ldap.Conn, error) { } if source.SecurityProtocol == SecurityProtocolLDAPS { - return ldap.DialTLS("tcp", net.JoinHostPort(source.Host, strconv.Itoa(source.Port)), tlsConfig) + return ldap.DialTLS("tcp", net.JoinHostPort(source.Host, strconv.Itoa(source.Port)), tlsConfig) //nolint:staticcheck } - conn, err := ldap.Dial("tcp", net.JoinHostPort(source.Host, strconv.Itoa(source.Port))) + conn, err := ldap.Dial("tcp", net.JoinHostPort(source.Host, strconv.Itoa(source.Port))) //nolint:staticcheck if err != nil { return nil, fmt.Errorf("error during Dial: %w", err) } |