mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-11-04 16:40:21 +00:00
🐛 quickfix: nil point
This commit is contained in:
1 parent
842aef50f8
commit
6f155e4c51
5 files changed
+5
-6
No files matched your search
+1
-1
@@ -198,8 +198,8 @@ func doTask(task *pb.Task) {
|
||||
}
|
||||
case model.MonitorTypeICMPPing:
|
||||
pinger, err := ping.NewPinger(task.GetData())
|
||||
pinger.SetPrivileged(true)
|
||||
if err == nil {
|
||||
pinger.SetPrivileged(true)
|
||||
pinger.Count = 10
|
||||
pinger.Timeout = time.Second * 20
|
||||
err = pinger.Run() // Blocks until finished.
|
||||
|
||||
Reference in new issue
Block a user