fix wrong config generation when upstream-hash-by is set (#2215)
This commit is contained in:
parent
08252e2eef
commit
df50487a35
1 changed files with 1 additions and 1 deletions
|
@ -287,7 +287,7 @@ func buildLoadBalancingConfig(b interface{}, fallbackLoadBalancing string) strin
|
|||
}
|
||||
|
||||
if backend.UpstreamHashBy != "" {
|
||||
return "hash {{ $upstream.UpstreamHashBy }} consistent;"
|
||||
return fmt.Sprintf("hash %s consistent;", backend.UpstreamHashBy)
|
||||
}
|
||||
|
||||
if backend.LoadBalancing != "" {
|
||||
|
|
Loading…
Reference in a new issue