We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15b6950 commit 786f2eeCopy full SHA for 786f2ee
lib/client.js
@@ -28,6 +28,7 @@ var Client = function(config) {
28
this.host = this.connectionParameters.host;
29
this.password = this.connectionParameters.password;
30
this.replication = this.connectionParameters.replication;
31
+ this.localAddress = this.connectionParameters.localAddress;
32
33
var c = config || {};
34
@@ -60,7 +61,7 @@ Client.prototype.connect = function(callback) {
60
61
if(this.host && this.host.indexOf('/') === 0) {
62
con.connect(this.host + '/.s.PGSQL.' + this.port);
63
} else {
- con.connect(this.port, this.host);
64
+ con.connect(this.port, this.host, this.localAddress);
65
}
66
67
0 commit comments