Skip to content

Commit 460d5d0

Browse files
committed
Merge pull request brianc#215 from natesilva/ipv6-native-support
enable IPv6 support when using native bindings
2 parents aa242b0 + 4b88c82 commit 460d5d0

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)