Skip to content

Commit 839b6b4

Browse files
committed
Pass host to tls.connect for certificate validation
Fixes brianc#2263
1 parent b8773ce commit 839b6b4

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
@@ -79,6 +79,7 @@ class Connection extends EventEmitter {
7979
const options = Object.assign(
8080
{
8181
socket: self.stream,
82+
host,
8283
},
8384
self.ssl
8485
)

0 commit comments

Comments
 (0)