From 86a6f337f68194603d29082b42eaca4853d390c9 Mon Sep 17 00:00:00 2001 From: Evan Phoenix Date: Tue, 23 Jun 2015 14:51:55 -0700 Subject: [PATCH] Cleanup the URL when one isn't specified --- plugins/redis/redis.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/redis/redis.go b/plugins/redis/redis.go index e936ae723..831d74dbe 100644 --- a/plugins/redis/redis.go +++ b/plugins/redis/redis.go @@ -92,7 +92,9 @@ func (g *Redis) Gather(acc plugins.Accumulator) error { return fmt.Errorf("Unable to parse to address '%s': %s", serv, err) } else if u.Scheme == "" { // fallback to simple string based address (i.e. "10.0.0.1:10000") + u.Scheme = "tcp" u.Host = serv + u.Path = "" } wg.Add(1) go func(serv string) {