From dfd2f7943f26e40b54b6d5fabf017959f0191fc0 Mon Sep 17 00:00:00 2001 From: TwinProduction Date: Fri, 1 Oct 2021 02:33:16 -0400 Subject: [PATCH] Fix issue with privileged call on linux --- client/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/client.go b/client/client.go index 1c44387e..a357cfac 100644 --- a/client/client.go +++ b/client/client.go @@ -85,9 +85,9 @@ func Ping(address string, config *Config) (bool, time.Duration) { } pinger.Count = 1 pinger.Timeout = config.Timeout - // Set the pinger's privileged mode to true for every operating system except darwin + // Set the pinger's privileged mode to true for windows // https://github.com/TwinProduction/gatus/issues/132 - pinger.SetPrivileged(runtime.GOOS != "darwin") + pinger.SetPrivileged(runtime.GOOS == "windows") err = pinger.Run() if err != nil { return false, 0