From 0a352379159d6ca6a0574c0fb6a5f64cad222d41 Mon Sep 17 00:00:00 2001 From: Dreamacro <8615343+Dreamacro@users.noreply.github.com> Date: Sun, 4 Apr 2021 17:40:25 +0800 Subject: [PATCH] Fix: should reset fast node when tolerance enable and not alive on url-test group --- adapters/outboundgroup/urltest.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adapters/outboundgroup/urltest.go b/adapters/outboundgroup/urltest.go index 4b9539f1..b5c102c3 100644 --- a/adapters/outboundgroup/urltest.go +++ b/adapters/outboundgroup/urltest.go @@ -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 }