From 9b0b5449d52095c0e3f0f240c19067b99c0cea81 Mon Sep 17 00:00:00 2001 From: Sachin Kamboj Date: Sun, 22 Oct 2023 17:36:32 +0000 Subject: [PATCH] :trollface: seriously? how was this broken Signed-off-by: Sachin Kamboj --- cmd/goldpinger/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/goldpinger/main.go b/cmd/goldpinger/main.go index 3a2d002..8c08cd2 100644 --- a/cmd/goldpinger/main.go +++ b/cmd/goldpinger/main.go @@ -156,7 +156,7 @@ func main() { if len(goldpinger.GoldpingerConfig.IPVersions) > 1 { logger.Warn("Multiple IP versions not supported. Will use first version specified as default", zap.Strings("IPVersions", goldpinger.GoldpingerConfig.IPVersions)) } - if goldpinger.GoldpingerConfig.IPVersions[0] != string(net.IPv4) && goldpinger.GoldpingerConfig.IPVersions[0] != net.IPv6 { + if goldpinger.GoldpingerConfig.IPVersions[0] != string(net.IPv4) && goldpinger.GoldpingerConfig.IPVersions[0] != string(net.IPv6) { logger.Error("Unknown IP version specified: expected values are 4 or 6", zap.Strings("IPVersions", goldpinger.GoldpingerConfig.IPVersions)) }