mirror of
https://github.com/nadoo/glider.git
synced 2025-04-21 19:52: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
|
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))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user