From 4b88c82b1687fb758f65a2c1e7c5213fe3519272 Mon Sep 17 00:00:00 2001 From: Nate Silva Date: Sat, 3 Nov 2012 11:40:36 -0700 Subject: [PATCH] enable IPv6 support when using native bindings --- lib/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils.js b/lib/utils.js index 07a379289..1454af0d6 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -77,7 +77,7 @@ var getLibpgConString = function(config, callback) { if(config.host) { if(config.host != 'localhost' && config.host != '127.0.0.1') { //do dns lookup - return require('dns').lookup(config.host, 4, function(err, address) { + return require('dns').lookup(config.host, function(err, address) { if(err) return callback(err, null); params.push("hostaddr="+address) callback(null, params.join(" "))