Skip to content

Commit

Permalink
update ssl value parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Bruyelle committed Jun 7, 2018
1 parent 4e03a55 commit 450f038
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion session.go
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,9 @@ func ParseURL(url string) (*DialInfo, error) {
for _, opt := range uinfo.options {
switch opt.key {
case "ssl":
ssl = opt.value == "true"
if v, err := strconv.ParseBool(opt.Value); err == nill && v {
ssl = true
}
case "authSource":
source = opt.value
case "authMechanism":
Expand Down

0 comments on commit 450f038

Please sign in to comment.