Fix: should reset fast node when tolerance enable and not alive on url-test group
This commit is contained in:
parent
a1f3a5ea26
commit
0a35237915
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ func (u *URLTest) fast(touch bool) C.Proxy {
|
|||
}
|
||||
|
||||
// tolerance
|
||||
if u.fastNode == nil || u.fastNode.LastDelay() > fast.LastDelay()+u.tolerance {
|
||||
if u.fastNode == nil || !u.fastNode.Alive() || u.fastNode.LastDelay() > fast.LastDelay()+u.tolerance {
|
||||
u.fastNode = fast
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue