-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
Dns resolver ipv6 #1082
Comments
I think @cjihrig did a lot of the ipv6 stuff |
@0x4139 could you please provide some example code of what you're looking for? For example, the following code will only work if you uncomment the 'use strict';
var http = require('http');
var server = http.createServer(function(req, res) {
res.end();
});
server.listen({port: 4000, host: '::1'}, function() {
var connection = http.get({
port: 4000,
// family: 6
}, function() {
server.close();
});
}); Or, is the problem with trying to force something like |
I think the main problem here is that the docs don't mention anything about a |
ping @0x4139 |
@silverwind sorry for the delayed answer this is what i was looking for! |
@cjihrig the |
@silverwind, yes I think it's currently undocumented behavior, but the |
This adds a few previously undocumented option to both functions. PR-URL: #1551 Fixes: #1082 Reviewed-By: Jeremiah Senkpiel <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
Fixed by b4ad5d7 |
require('http') is responsible for passing the host to the dns resolver, when the the address you want to bind on is ipv6 the dns resolver should return the ipv6 address instead of the ipv4 one.
The text was updated successfully, but these errors were encountered: