mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-12-01 14:36:50 +00:00
fix: sticky-sessions may not be effective
This commit is contained in:
1 parent
4437c8861c
commit
ca3f1ebae6
1 file changed
+1
-1
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user