brianc/node-postgres — pull request #215 by natesilva (2012-11-03 18:47:20+00:00)
Title: enable IPv6 support when using native bindings

Currently, when using native bindings, you cannot connect to an IPv6 server by hostname.

The only reason this happens is because there is a `dns.lookup()` hard-coded for IPv4. Node’s default is to look for both IPv4 and IPv6 addresses when doing a DNS lookup. Removing the forced `4` argument allows Node’s default behavior and fixes the problem.