Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Vladimir Barsukov
zdb
Commits
5cb7114a
Commit
5cb7114a
authored
Jul 16, 2023
by
Vladimir Barsukov
Browse files
sslmode=disable
parent
9d9a0a38
Changes
1
Hide whitespace changes
Inline
Side-by-side
pool.go
View file @
5cb7114a
...
...
@@ -136,6 +136,10 @@ func (d *Pool) newConn(mode connMode, pgConnString string) (q *Conn, err error)
pgConnString
+=
" connect_timeout=3"
}
if
!
strings
.
Contains
(
pgConnString
,
"sslmode="
)
{
pgConnString
+=
" sslmode=disable"
}
if
pgxConfig
,
err
=
pgxpool
.
ParseConfig
(
pgConnString
);
err
!=
nil
{
return
nil
,
err
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment