From 1cee3c89cd1d1eff6f00560d8fe8d790ea3516cf Mon Sep 17 00:00:00 2001 From: Aero Date: Mon, 9 Dec 2019 10:40:56 +0800 Subject: [PATCH] init --- strategy/strategy.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/strategy/strategy.go b/strategy/strategy.go index ba3e932..5d5ec68 100644 --- a/strategy/strategy.go +++ b/strategy/strategy.go @@ -193,6 +193,10 @@ func (p *Proxy) check(i int) { retry := 1 buf := make([]byte, 4) + if p.config.CheckInterval == 0 { + f.Enable() + return + } for { time.Sleep(time.Duration(p.config.CheckInterval) * time.Second * time.Duration(retry>>1))