mirror of
https://github.com/redis/go-redis.git
synced 2025-04-17 20:17:02 +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:
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…
x
Reference in New Issue
Block a user