Cleanup the URL when one isn't specified
This commit is contained in:
parent
a1f7d5549b
commit
86a6f337f6
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue