mirror of
https://github.com/nadoo/glider.git
synced 2025-04-22 04:02:07 +08:00
init
This commit is contained in:
parent
1c9df2d55c
commit
1cee3c89cd
@ -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))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user