Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable IPv6 support when using native bindings #215

Merged
merged 1 commit into from
Nov 3, 2012

Conversation

natesilva
Copy link
Contributor

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.

@natesilva
Copy link
Contributor Author

(By the way, the NON-native bindings work just fine over IPv6.)

@brianc
Copy link
Owner

brianc commented Nov 3, 2012

nice 👍

brianc added a commit that referenced this pull request Nov 3, 2012
enable IPv6 support when using native bindings
@brianc brianc merged commit 460d5d0 into brianc:master Nov 3, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants