Skip to content

Commit

Permalink
Merge pull request #215 from natesilva/ipv6-native-support
Browse files Browse the repository at this point in the history
enable IPv6 support when using native bindings
  • Loading branch information
brianc committed Nov 3, 2012
2 parents aa242b0 + 4b88c82 commit 460d5d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(" "))
Expand Down

0 comments on commit 460d5d0

Please sign in to comment.