From df9cd8950e618aa07865b76f3ba0cb119e1aab2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A4=E0=A5=8B=E0=A4=AB?= =?UTF-8?q?=E0=A5=8D=E0=A4=AB=E0=A5=87=E0=A4=B2=E0=A4=B8=E0=A5=8D=E0=A4=95?= =?UTF-8?q?=E0=A5=8D=E0=A4=B0=E0=A4=BF=E0=A4=AA=E0=A5=8D=E0=A4=9F=E2=84=A2?= Date: Wed, 26 Jun 2024 10:38:39 +0200 Subject: [PATCH] fix(core): Disable Fast Fallback for network connections (no-changelog) (#9860) Co-authored-by: Tomi Turtiainen <10324676+tomi@users.noreply.github.com> --- packages/cli/bin/n8n | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/cli/bin/n8n b/packages/cli/bin/n8n index e274ba2b68..9b6433fc56 100755 --- a/packages/cli/bin/n8n +++ b/packages/cli/bin/n8n @@ -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 });