mirror of
https://github.com/kataras/iris.git
synced 2026-03-06 16:35:57 +00:00
add TLSConfig on redis configuration #1515
Former-commit-id: 3ce4a43185c7b6b5250f49483d7d229ea9dd1670
This commit is contained in:
@@ -45,6 +45,10 @@ func (r *RadixDriver) Connect(c Config) error {
|
||||
|
||||
var options []radix.DialOpt
|
||||
|
||||
if c.TLSConfig != nil {
|
||||
options = append(options, radix.DialUseTLS(c.TLSConfig))
|
||||
}
|
||||
|
||||
if c.Password != "" {
|
||||
options = append(options, radix.DialAuthPass(c.Password))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user