@cryptotaxi247 / netdata / commits / 4f3ff7f7e

fix(go.d/redis): don't clear tls for rediss (#20478)

Ilya Mashchenko committed Jun 13, 2025 at 15:41 UTC 4f3ff7f7ebb554ba922075a0271286f5287ade89
1 file changed +3 -1
src/go/plugin/go.d/collector/redis/init.go
+3 -1
@@ -41,7 +41,9 @@ func (c *Collector) initRedisClient() (*redis.Client, error) {
41 }
42
43 opts.PoolSize = 1
44 - opts.TLSConfig = tlsConfig
44 + if tlsConfig != nil {
45 + opts.TLSConfig = tlsConfig
46 + }
47 opts.DialTimeout = c.Timeout.Duration()
48 opts.ReadTimeout = c.Timeout.Duration()
49 opts.WriteTimeout = c.Timeout.Duration()