Skip to content

Commit

Permalink
forward single server name when connecting to multiple redis hosts in…
Browse files Browse the repository at this point in the history
… cluster or sentinel modes
  • Loading branch information
mredolatti committed Apr 3, 2024
1 parent 94c6f52 commit 424f382
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
5 changes: 4 additions & 1 deletion CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
5.7.0 (TD)
5.7.1 (TBD)
- Forward TLS server name when in redis-sentinel & redis-cluster

5.7.0 (Feb 22, 2024)
- Add support for FIPS-compliant binaries & docker images

5.6.1 (Jan 29, 2024)
Expand Down
2 changes: 1 addition & 1 deletion splitio/commitversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ This file is created automatically, please do not edit
*/

// CommitVersion is the version of the last commit previous to release
const CommitVersion = "1ffbd68"
const CommitVersion = "94c6f52"
10 changes: 3 additions & 7 deletions splitio/producer/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,9 @@ func parseTLSConfig(opt *conf.Redis) (*tls.Config, error) {
return nil, nil
}

cfg := tls.Config{}
if !opt.SentinelReplication && !opt.ClusterMode {
if opt.TLSServerName != "" {
cfg.ServerName = opt.TLSServerName
} else {
cfg.ServerName = opt.Host
}
cfg := tls.Config{ServerName: opt.TLSServerName}
if cfg.ServerName == "" {
cfg.ServerName = opt.Host
}

if len(opt.TLSCACertificates) > 0 {
Expand Down
2 changes: 1 addition & 1 deletion splitio/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
package splitio

// Version is the version of this Agent
const Version = "5.7.0"
const Version = "5.7.1-rc1"

0 comments on commit 424f382

Please sign in to comment.