Skip to content

Commit e426771

Browse files
committed
Pass host to tls.connect for certificate validation
Fixes #2263
1 parent d7b22b3 commit e426771

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/pg/lib/connection.js

+1
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ Connection.prototype.connect = function (port, host) {
8383
const options = Object.assign(
8484
{
8585
socket: self.stream,
86+
host,
8687
},
8788
self.ssl
8889
)

0 commit comments

Comments
 (0)