mirror of https://github.com/jackc/pgx.git
respect sslmode set by user
parent
037e4cf9a2
commit
9b15554c51
|
@ -665,7 +665,9 @@ func configTLS(settings map[string]string, thisHost string, parseConfigOptions P
|
|||
|
||||
if sslnegotiation == "direct" {
|
||||
tlsConfig.NextProtos = []string{"postgresql"}
|
||||
sslmode = "require"
|
||||
if sslmode == "prefer" {
|
||||
sslmode = "require"
|
||||
}
|
||||
}
|
||||
|
||||
if sslrootcert != "" {
|
||||
|
|
Loading…
Reference in New Issue