Skip to content

Commit 03c4ea5

Browse files
committed
Pass host to tls.connect for certificate validation
Fixes brianc#2263
1 parent 8f0db30 commit 03c4ea5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/pg/lib/connection.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ class Connection extends EventEmitter {
7777
var tls = require('tls')
7878
const options = {
7979
socket: self.stream,
80+
host,
8081
}
8182

8283
if (self.ssl !== true) {

0 commit comments

Comments
 (0)