Skip to content

Commit

Permalink
fix: support tls for cluster refresh op (#781)
Browse files Browse the repository at this point in the history
  • Loading branch information
aballman authored Mar 29, 2023
1 parent de4f5eb commit b6d1eba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions exporter/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ func (e *Exporter) configureOptions(uri string) ([]redis.DialOption, error) {
redis.DialReadTimeout(e.options.ConnectionTimeouts),
redis.DialWriteTimeout(e.options.ConnectionTimeouts),
redis.DialTLSConfig(tlsConfig),
redis.DialUseTLS(strings.HasPrefix(e.redisAddr, "rediss://")),
}

if e.options.User != "" {
Expand Down

0 comments on commit b6d1eba

Please sign in to comment.