mirror of
https://github.com/luscis/openlan.git
synced 2025-10-05 16:47:11 +08:00
fix: network be blocked when ldap timeout
This commit is contained in:
2
pkg/cache/user.go
vendored
2
pkg/cache/user.go
vendored
@@ -243,8 +243,6 @@ func (w *user) SetLdap(cfg *libol.LDAPConfig) error {
|
||||
}
|
||||
|
||||
func (w *user) SetCert(cfg *libol.CertConfig) {
|
||||
w.Lock.Lock()
|
||||
defer w.Lock.Unlock()
|
||||
w.Cert = cfg.Crt
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user