diff --git a/cmd/falco-exporter/root.go b/cmd/falco-exporter/root.go index 5e86a2d..9ec5d52 100644 --- a/cmd/falco-exporter/root.go +++ b/cmd/falco-exporter/root.go @@ -62,7 +62,7 @@ func main() { config.UnixSocketPath = "" log.Printf("connecting to gRPC server at %s:%d (timeout %s)", config.Hostname, config.Port, timeout) } else { - if !strings.HasPrefix("unix://", config.UnixSocketPath) { + if !strings.HasPrefix(config.UnixSocketPath, "unix://") { config.UnixSocketPath = "unix://" + config.UnixSocketPath } log.Printf("connecting to gRPC server at %s (timeout %s)", config.UnixSocketPath, timeout)