Skip to content

Commit

Permalink
fix: sticky-sessions may not be effective
Browse files Browse the repository at this point in the history
  • Loading branch information
xishang0128 committed Oct 12, 2024
1 parent 4437c88 commit ca3f1eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adapter/outboundgroup/loadbalance.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ func strategyStickySessions(url string) strategyFn {
for i := 1; i < maxRetry; i++ {
proxy := proxies[nowIdx]
if proxy.AliveForTestUrl(url) {
if nowIdx != idx {
if !has || nowIdx != idx {
lruCache.Set(key, nowIdx)
}

Expand Down

0 comments on commit ca3f1eb

Please sign in to comment.