forked from mirror/redis
Default to secure
I suspect that many people will need InsecureSkipVerify:true though, but that should be an explicit decision to expose security issues instead of papering over them.
This commit is contained in:
parent
4aa583b6f8
commit
df2009821f
|
@ -154,7 +154,7 @@ func ParseURL(redisURL string) (*Options, error) {
|
|||
}
|
||||
|
||||
if u.Scheme == "rediss" {
|
||||
o.TLSConfig = &tls.Config{InsecureSkipVerify: true}
|
||||
o.TLSConfig = &tls.Config{ServerName: h}
|
||||
}
|
||||
return o, nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue