mirror of
https://github.com/brianc/node-postgres.git
synced 2026-01-18 15:55:05 +00:00
fix reference to ssl parameters
This commit is contained in:
parent
62385edbe7
commit
c5b804f5c4
@ -56,13 +56,13 @@ p.connect = function(port, host) {
|
||||
self.stream = tls.connect({
|
||||
socket: self.stream,
|
||||
servername: host,
|
||||
rejectUnauthorized: ssl.rejectUnauthorized,
|
||||
ca: ssl.ca,
|
||||
pfx: ssl.pfx,
|
||||
key: ssl.key,
|
||||
passphrase: ssl.passphrase,
|
||||
cert: ssl.cert,
|
||||
NPNProtocols: ssl.NPNProtocols
|
||||
rejectUnauthorized: self.ssl.rejectUnauthorized,
|
||||
ca: self.ssl.ca,
|
||||
pfx: self.ssl.pfx,
|
||||
key: self.ssl.key,
|
||||
passphrase: self.ssl.passphrase,
|
||||
cert: self.ssl.cert,
|
||||
NPNProtocols: self.ssl.NPNProtocols
|
||||
});
|
||||
self.attachListeners(self.stream);
|
||||
self.emit('sslconnect');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user