Skip to content

Commit 1003bff

Browse files
committed
Merge branch 'add-scram-sha-256-plus' of https://github.com/jawj/node-postgres into add-scram-sha-256-plus
2 parents 52e656c + f899f8f commit 1003bff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/pg/lib/client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Client extends EventEmitter {
2020
this.database = this.connectionParameters.database
2121
this.port = this.connectionParameters.port
2222
this.host = this.connectionParameters.host
23-
this.enableChannelBinding = false // set true to use SCRAM-SHA-256-PLUS when offered
23+
this.enableChannelBinding = Boolean(config.enableChannelBinding) // set true to use SCRAM-SHA-256-PLUS when offered
2424

2525
// "hiding" the password so it doesn't show up in stack traces
2626
// or if the client is console.logged

0 commit comments

Comments
 (0)