diff --git a/options.go b/options.go index 9d8e917..77ffbce 100644 --- a/options.go +++ b/options.go @@ -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 }