mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 12:40:07 +00:00
@@ -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