mirror of
https://github.com/TwiN/gatus.git
synced 2024-11-28 10:53:20 +01:00
#111: Don't explicitly specify ip4 for ICMP
This commit is contained in:
parent
4a4c88ae17
commit
19a0ba7271
@ -84,7 +84,6 @@ func Ping(address string) (bool, time.Duration) {
|
|||||||
}
|
}
|
||||||
pinger.Count = 1
|
pinger.Count = 1
|
||||||
pinger.Timeout = pingTimeout
|
pinger.Timeout = pingTimeout
|
||||||
pinger.SetNetwork("ip4")
|
|
||||||
pinger.SetPrivileged(true)
|
pinger.SetPrivileged(true)
|
||||||
err = pinger.Run()
|
err = pinger.Run()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user