Fix error in prepareServer

This commit is contained in:
Emile Vauge 2017-09-07 20:14:03 +02:00 committed by Traefiker
parent c19cce69fa
commit 3b6afdf80c
2 changed files with 4 additions and 3 deletions

View file

@ -647,6 +647,7 @@ func (server *Server) prepareServer(entryPointName string, entryPoint *configura
listener, err := net.Listen("tcp", entryPoint.Address)
if err != nil {
log.Error("Error opening listener ", err)
return nil, nil, err
}
if entryPoint.ProxyProtocol {