This commit is contained in:
Aero 2019-12-09 10:40:56 +08:00
parent 1c9df2d55c
commit 1cee3c89cd

View File

@ -193,6 +193,10 @@ func (p *Proxy) check(i int) {
retry := 1 retry := 1
buf := make([]byte, 4) buf := make([]byte, 4)
if p.config.CheckInterval == 0 {
f.Enable()
return
}
for { for {
time.Sleep(time.Duration(p.config.CheckInterval) * time.Second * time.Duration(retry>>1)) time.Sleep(time.Duration(p.config.CheckInterval) * time.Second * time.Duration(retry>>1))