internal: fix crash when port 9000 is in use (#4863)

fix crash when port 9000 is in use

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens L
2023-03-07 13:27:46 +01:00
committed by GitHub
parent 885aeddbdc
commit 41d17dc543
6 changed files with 12 additions and 7 deletions

View File

@ -55,7 +55,8 @@ func (ls *LDAPServer) StartLDAPServer() error {
ln, err := net.Listen("tcp", listen)
if err != nil {
ls.log.WithField("listen", listen).WithError(err).Fatalf("listen failed")
ls.log.WithField("listen", listen).WithError(err).Warning("Failed to listen (SSL)")
return err
}
proxyListener := &proxyproto.Listener{Listener: ln}
defer proxyListener.Close()