Skip to content

Commit f784dc1

Browse files
author
Thomas Bruyelle
committed
update ssl value parsing
1 parent 4e03a55 commit f784dc1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

session.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,9 @@ func ParseURL(url string) (*DialInfo, error) {
354354
for _, opt := range uinfo.options {
355355
switch opt.key {
356356
case "ssl":
357-
ssl = opt.value == "true"
357+
if v, err := strconv.ParseBool(opt.value); err == nil && v {
358+
ssl = true
359+
}
358360
case "authSource":
359361
source = opt.value
360362
case "authMechanism":

0 commit comments

Comments
 (0)