feat(ldap): add ldap protocol support (#50)

Co-authored-by: tardc <[email protected]>
Co-authored-by: E99p1ant <[email protected]>
This commit is contained in:
Li4n0
2022-01-07 22:47:02 +08:00
committed by GitHub
co-authored by tardc E99p1ant
parent 06ae3d0555
commit fc505b0733
46 changed files with 1356 additions and 135 deletions
+2 -2
View File
@@ -191,10 +191,10 @@ func (s *Server) Run() {
}
}()
for s.Enable {
for {
tcpConn, err := listener.Accept()
if err != nil {
if !strings.Contains(err.Error(), net.ErrClosed.Error()) {
if !errors.Is(err, net.ErrClosed) {
log.Warn("RMI accept connection error: %v", err)
} else {
break