We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e03a55 commit f784dc1Copy full SHA for f784dc1
session.go
@@ -354,7 +354,9 @@ func ParseURL(url string) (*DialInfo, error) {
354
for _, opt := range uinfo.options {
355
switch opt.key {
356
case "ssl":
357
- ssl = opt.value == "true"
+ if v, err := strconv.ParseBool(opt.value); err == nil && v {
358
+ ssl = true
359
+ }
360
case "authSource":
361
source = opt.value
362
case "authMechanism":
0 commit comments