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';