mirror of
https://github.com/n8n-io/n8n.git
synced 2024-09-11 13:15:28 +03:00
fix(core): Disable Fast Fallback for network connections (no-changelog) (#9860)
Co-authored-by: Tomi Turtiainen <10324676+tomi@users.noreply.github.com>
This commit is contained in:
parent
1eeaf32523
commit
df9cd8950e
@ -47,6 +47,14 @@ if (process.env.NODEJS_PREFER_IPV4 === 'true') {
|
|||||||
require('dns').setDefaultResultOrder('ipv4first');
|
require('dns').setDefaultResultOrder('ipv4first');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Node.js 20 enabled a Happy Eyeballs algorithm which enables support
|
||||||
|
// for both IPv6 and IPv4 at the same time, favoring IPv6 when possible.
|
||||||
|
// However there are some issues in the algorithm implementation that is causing
|
||||||
|
// issues to our users with services like Telegram or Airtable. This restores the
|
||||||
|
// behavior to pre v20
|
||||||
|
// More details: https://github.com/nodejs/node/issues/48145
|
||||||
|
require('net').setDefaultAutoSelectFamily?.(false);
|
||||||
|
|
||||||
(async () => {
|
(async () => {
|
||||||
const oclif = await import('@oclif/core');
|
const oclif = await import('@oclif/core');
|
||||||
await oclif.execute({ dir: __dirname });
|
await oclif.execute({ dir: __dirname });
|
||||||
|
Loading…
Reference in New Issue
Block a user