respect sslmode set by user

pull/2293/head
divyam234 2025-03-30 16:35:43 +02:00
parent 037e4cf9a2
commit 9b15554c51
No known key found for this signature in database
1 changed files with 3 additions and 1 deletions

View File

@ -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 != "" {