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
Linux cvhc-tomato 5.16.13-zen1-1-zen #1 ZEN SMP PREEMPT Tue, 08 Mar 2022 20:07:38 +0000 x86_64 GNU/Linux
Subsystem
No response
What steps will reproduce the bug?
We use a IPv4/v6 dual-stack network. For some reason, we blocked some IPv6 ranges, including Google's, on our gateway. It returns "Address unreachable" for any access to these IPv6 ranges.
Usually HTTP clients fallback to IPv4 when v6 fails so the blocking doesn't prevent them from accessing Google. At least this is true for browsers, curl/wget and Python HTTP libraries.
But nodejs's HTTP(s) modules don't behave the same way. The following code:
Version
v17.6.0
Platform
Linux cvhc-tomato 5.16.13-zen1-1-zen #1 ZEN SMP PREEMPT Tue, 08 Mar 2022 20:07:38 +0000 x86_64 GNU/Linux
Subsystem
No response
What steps will reproduce the bug?
We use a IPv4/v6 dual-stack network. For some reason, we blocked some IPv6 ranges, including Google's, on our gateway. It returns "Address unreachable" for any access to these IPv6 ranges.
Usually HTTP clients fallback to IPv4 when v6 fails so the blocking doesn't prevent them from accessing Google. At least this is true for browsers, curl/wget and Python HTTP libraries.
But nodejs's HTTP(s) modules don't behave the same way. The following code:
will ends up with an error.
How often does it reproduce? Is there a required condition?
No response
What is the expected behavior?
No response
What do you see instead?
Additional information
Is it possible to change the behavior so that nodejs's HTTP(s) modules fallback to IPv4 when IPv6 connect fails, like other HTTP clients?
The text was updated successfully, but these errors were encountered: