Skip to content

Commit 4b88c82

Browse files
author
Nate Silva
committed
enable IPv6 support when using native bindings
1 parent a029e65 commit 4b88c82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ var getLibpgConString = function(config, callback) {
7777
if(config.host) {
7878
if(config.host != 'localhost' && config.host != '127.0.0.1') {
7979
//do dns lookup
80-
return require('dns').lookup(config.host, 4, function(err, address) {
80+
return require('dns').lookup(config.host, function(err, address) {
8181
if(err) return callback(err, null);
8282
params.push("hostaddr="+address)
8383
callback(null, params.join(" "))

0 commit comments

Comments
 (0)