mirror of
https://github.com/kubenetworks/kubevpn.git
synced 2025-12-24 11:51:13 +08:00
hotfix: fix ping bug (#213)
Co-authored-by: wencaiwulue <895703375@qq.com>
This commit is contained in:
@@ -142,7 +142,7 @@ func Heartbeats() {
|
||||
for ; true; <-ticker.C {
|
||||
for _, ip := range []net.IP{config.RouterIP, config.RouterIP6} {
|
||||
time.Sleep(time.Millisecond * time.Duration(rand.Intn(1000)))
|
||||
_, _ = Ping(ip.String())
|
||||
_, _ = Ping(context.Background(), ip.String())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user