diff --git a/prober/utils.go b/prober/utils.go index 4483c21d4..238f65c7e 100644 --- a/prober/utils.go +++ b/prober/utils.go @@ -63,7 +63,7 @@ func chooseProtocol(ctx context.Context, IPProtocol string, fallbackIPProtocol b return nil, 0.0, err } - // Return the IP in the requested protocol format + // Return the IP in the requested protocol. var fallback *net.IPAddr for _, ip := range ips { switch IPProtocol { @@ -90,12 +90,12 @@ func chooseProtocol(ctx context.Context, IPProtocol string, fallbackIPProtocol b } } - // Unable to find ip and no fallback set + // Unable to find ip and no fallback set. if fallback == nil { return nil, 0.0, fmt.Errorf("unable to find ip; no fallback") } - // Use fallback ip protocol + // Use fallback ip protocol. if fallbackProtocol == "ip4" { probeIPProtocolGauge.Set(4) } else {