mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-11-04 16:40:21 +00:00
1 parent
49d4f4879f
commit
14a6df66ff
5 files changed
+9
-2
No files matched your search
@@ -198,6 +198,7 @@ func doTask(task *pb.Task) {
|
||||
}
|
||||
case model.MonitorTypeICMPPing:
|
||||
pinger, err := ping.NewPinger(task.GetData())
|
||||
pinger.SetPrivileged(true)
|
||||
if err == nil {
|
||||
pinger.Count = 10
|
||||
pinger.Timeout = time.Second * 20
|
||||
|
||||
Reference in new issue
Block a user