Skip to content
Permalink
Browse files
fix: load the ssl configuration property when defined through Propert…
…ies.
  • Loading branch information
whitingjr committed Jan 22, 2016
1 parent 0f979c3 commit a6a61be858fd3fff53003b78f061d60cd04710d1
@@ -61,7 +61,7 @@ public ProtocolConnection openConnectionImpl(HostSpec[] hostSpecs, String user,
boolean trySSL;
String sslmode = PGProperty.SSL_MODE.get(info);
if (sslmode == null) { // Fall back to the ssl property
requireSSL = trySSL = PGProperty.SSL.isPresent(info);
requireSSL = trySSL = PGProperty.SSL.getBoolean(info);
} else {
if ("disable".equals(sslmode)) {
requireSSL = trySSL = false;
@@ -76,7 +76,7 @@ public ProtocolConnection openConnectionImpl(HostSpec[] hostSpecs, String user,
boolean trySSL;
String sslmode = PGProperty.SSL_MODE.get(info);
if (sslmode == null) { // Fall back to the ssl property
requireSSL = trySSL = PGProperty.SSL.isPresent(info);
requireSSL = trySSL = PGProperty.SSL.getBoolean(info);
} else {
if ("disable".equals(sslmode)) {
requireSSL = trySSL = false;

0 comments on commit a6a61be

Please sign in to comment.