Skip to content

Commit

Permalink
Default to secure
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Edward Muller committed Nov 16, 2016
1 parent 4aa583b commit df20098
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion options.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit df20098

Please sign in to comment.