Fix retry attempts
Signed-off-by: Emile Vauge <emile@vauge.com>
This commit is contained in:
parent
8486766a60
commit
e36433c23a
1 changed files with 1 additions and 1 deletions
|
@ -425,7 +425,7 @@ func (server *Server) loadConfig(configurations configs, globalConfiguration Glo
|
|||
}
|
||||
// retry ?
|
||||
if globalConfiguration.Retry != nil {
|
||||
retries := len(configuration.Backends[frontend.Backend].Servers) - 1
|
||||
retries := len(configuration.Backends[frontend.Backend].Servers)
|
||||
if globalConfiguration.Retry.Attempts > 0 {
|
||||
retries = globalConfiguration.Retry.Attempts
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue