From e9ce5312106e550c15eb4adc049e4b0151a7c40c 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: Tue, 19 Sep 2023 15:56:38 +0200 Subject: [PATCH] fix(core): Resolve domains to IPv4 first (#7206) --- packages/cli/bin/n8n | 1 + packages/cli/src/WorkflowRunnerProcess.ts | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/cli/bin/n8n b/packages/cli/bin/n8n index c0dc619251812..11c39af9b00cf 100755 --- a/packages/cli/bin/n8n +++ b/packages/cli/bin/n8n @@ -39,6 +39,7 @@ inspect.defaultOptions.customInspect = false; require('express-async-errors'); require('source-map-support').install(); require('reflect-metadata'); +require('dns').setDefaultResultOrder('ipv4first'); require('@oclif/command') .run() diff --git a/packages/cli/src/WorkflowRunnerProcess.ts b/packages/cli/src/WorkflowRunnerProcess.ts index d1b009a77ecb8..42a59d82c1000 100644 --- a/packages/cli/src/WorkflowRunnerProcess.ts +++ b/packages/cli/src/WorkflowRunnerProcess.ts @@ -1,13 +1,14 @@ /* eslint-disable @typescript-eslint/no-unsafe-argument */ /* eslint-disable @typescript-eslint/no-unsafe-member-access */ - /* eslint-disable @typescript-eslint/no-unsafe-assignment */ /* eslint-disable @typescript-eslint/no-shadow */ - /* eslint-disable @typescript-eslint/no-use-before-define */ /* eslint-disable @typescript-eslint/unbound-method */ import 'source-map-support/register'; import 'reflect-metadata'; +import { setDefaultResultOrder } from 'dns'; +setDefaultResultOrder('ipv4first'); + import { Container } from 'typedi'; import type { IProcessMessage } from 'n8n-core'; import { BinaryDataManager, UserSettings, WorkflowExecute } from 'n8n-core';