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)) }