Skip to content

Commit

Permalink
fix(core): Disable Fast Fallback for network connections (no-changelo…
Browse files Browse the repository at this point in the history
…g) (n8n-io#9860)

Co-authored-by: Tomi Turtiainen <[email protected]>
  • Loading branch information
netroy and tomi authored Jun 26, 2024
1 parent 1eeaf32 commit df9cd89
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/cli/bin/n8n
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@ if (process.env.NODEJS_PREFER_IPV4 === 'true') {
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 () => {
const oclif = await import('@oclif/core');
await oclif.execute({ dir: __dirname });
Expand Down

0 comments on commit df9cd89

Please sign in to comment.