Fix ping issue on Windows 10

This commit is contained in:
andig 2022-01-22 10:34:49 +01:00 • committed by GitHub
parent 4ff334d03f
commit c3a23d2b82
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,6 +37,7 @@ func (h *PingHandler) Test(log *util.Logger, in ResultDetails) []ResultDetails {
}
if runtime.GOOS == "windows" {
pinger.Size = 548 // https://github.com/go-ping/ping/issues/168
pinger.SetPrivileged(true)
}