Commit 5cb7114a authored by Vladimir Barsukov's avatar Vladimir Barsukov
Browse files

sslmode=disable

parent 9d9a0a38
...@@ -136,6 +136,10 @@ func (d *Pool) newConn(mode connMode, pgConnString string) (q *Conn, err error) ...@@ -136,6 +136,10 @@ func (d *Pool) newConn(mode connMode, pgConnString string) (q *Conn, err error)
pgConnString += " connect_timeout=3" pgConnString += " connect_timeout=3"
} }
if !strings.Contains(pgConnString, "sslmode=") {
pgConnString += " sslmode=disable"
}
if pgxConfig, err = pgxpool.ParseConfig(pgConnString); err != nil { if pgxConfig, err = pgxpool.ParseConfig(pgConnString); err != nil {
return nil, err return nil, err
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment