You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know exactly what is the issue. nodejs https library is not smart enough to know that it is dealing with IPv6. I tried to make a udp4 socket by providing an IPv6 address and got the same error above, when I used udp6 it created it fine and binded.
So suggestion: Introduce explicit parameters to say an address is ipv6 OR make it smarter to determine if the address is IPv6
What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
Can be reproduced with the usage of any IPv6 address in the interface
What is the expected behavior?
I am supposed to be able to make the request without any problems just like when binding an IPv4
What do you see instead?
bind EINVAL error
Additional information
I have tested with multiple IPv4 addresses in the interface and they all worked but non of the IPv6 are working
This is the code:
`const https = require('https');
(async () => {
const options = {
//Not real site
hostname: 'example.com',
path: '/test',
localAddress:'Ipv6 address'
}
https.get(options,(res) => {
let body = "";
})();`
The text was updated successfully, but these errors were encountered: