diff --git a/pgjdbc/src/main/java/org/postgresql/PGProperty.java b/pgjdbc/src/main/java/org/postgresql/PGProperty.java index 342d01e171..3f4cad6724 100644 --- a/pgjdbc/src/main/java/org/postgresql/PGProperty.java +++ b/pgjdbc/src/main/java/org/postgresql/PGProperty.java @@ -184,10 +184,10 @@ public enum PGProperty { GSS_ENC_MODE( "gssEncMode", - "prefer", + "allow", "Force Encoded GSS Mode", false, - new String[] {"disable", "prefer", "require"} + new String[] {"disable", "allow", "prefer", "require"} ), /** diff --git a/pgjdbc/src/main/java/org/postgresql/jdbc/GSSEncMode.java b/pgjdbc/src/main/java/org/postgresql/jdbc/GSSEncMode.java index a43583f1d5..10367129d0 100644 --- a/pgjdbc/src/main/java/org/postgresql/jdbc/GSSEncMode.java +++ b/pgjdbc/src/main/java/org/postgresql/jdbc/GSSEncMode.java @@ -48,7 +48,7 @@ public boolean requireEncryption() { public static GSSEncMode of(Properties info) throws PSQLException { String gssEncMode = PGProperty.GSS_ENC_MODE.get(info); - // If gssEncMode is not set, fallback to prefer + // If gssEncMode is not set, fallback to allow if (gssEncMode == null) { return ALLOW; }