Skip to content

Commit

Permalink
Cleanup the URL when one isn't specified
Browse files Browse the repository at this point in the history
  • Loading branch information
evanphx committed Jun 23, 2015
1 parent a1f7d55 commit 86a6f33
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/redis/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 86a6f33

Please sign in to comment.