Fix retry attempts

Signed-off-by: Emile Vauge <emile@vauge.com>
This commit is contained in:
Emile Vauge 2016-04-06 14:07:51 +02:00
parent 8486766a60
commit e36433c23a
No known key found for this signature in database
GPG key ID: D808B4C167352E59

View file

@ -425,7 +425,7 @@ func (server *Server) loadConfig(configurations configs, globalConfiguration Glo
} }
// retry ? // retry ?
if globalConfiguration.Retry != nil { if globalConfiguration.Retry != nil {
retries := len(configuration.Backends[frontend.Backend].Servers) - 1 retries := len(configuration.Backends[frontend.Backend].Servers)
if globalConfiguration.Retry.Attempts > 0 { if globalConfiguration.Retry.Attempts > 0 {
retries = globalConfiguration.Retry.Attempts retries = globalConfiguration.Retry.Attempts
} }