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:
@ -63,7 +63,8 @@ func (ws *WebServer) Shutdown() {
|
||||
func (ws *WebServer) listenPlain() {
|
||||
ln, err := net.Listen("tcp", config.Get().Listen.HTTP)
|
||||
if err != nil {
|
||||
ws.log.WithError(err).Fatal("failed to listen")
|
||||
ws.log.WithError(err).Warning("failed to listen")
|
||||
return
|
||||
}
|
||||
proxyListener := &proxyproto.Listener{Listener: ln}
|
||||
defer proxyListener.Close()
|
||||
|
Reference in New Issue
Block a user