mirror of
https://github.com/redis/go-redis.git
synced 2025-07-29 17:41:15 +03:00
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:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user