mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(core): Make DNS resolution order configurable (#7272)
This commit is contained in:
committed by
GitHub
parent
e4c302c683
commit
5b3121c415
@@ -39,7 +39,10 @@ inspect.defaultOptions.customInspect = false;
|
|||||||
require('express-async-errors');
|
require('express-async-errors');
|
||||||
require('source-map-support').install();
|
require('source-map-support').install();
|
||||||
require('reflect-metadata');
|
require('reflect-metadata');
|
||||||
require('dns').setDefaultResultOrder('ipv4first');
|
|
||||||
|
if (process.env.NODEJS_PREFER_IPV4 === 'true') {
|
||||||
|
require('dns').setDefaultResultOrder('ipv4first');
|
||||||
|
}
|
||||||
|
|
||||||
require('@oclif/command')
|
require('@oclif/command')
|
||||||
.run()
|
.run()
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
import 'source-map-support/register';
|
import 'source-map-support/register';
|
||||||
import 'reflect-metadata';
|
import 'reflect-metadata';
|
||||||
import { setDefaultResultOrder } from 'dns';
|
import { setDefaultResultOrder } from 'dns';
|
||||||
setDefaultResultOrder('ipv4first');
|
|
||||||
|
|
||||||
import { Container } from 'typedi';
|
import { Container } from 'typedi';
|
||||||
import type { IProcessMessage } from 'n8n-core';
|
import type { IProcessMessage } from 'n8n-core';
|
||||||
@@ -59,6 +58,10 @@ import { License } from '@/License';
|
|||||||
import { InternalHooks } from '@/InternalHooks';
|
import { InternalHooks } from '@/InternalHooks';
|
||||||
import { PostHogClient } from '@/posthog';
|
import { PostHogClient } from '@/posthog';
|
||||||
|
|
||||||
|
if (process.env.NODEJS_PREFER_IPV4 === 'true') {
|
||||||
|
setDefaultResultOrder('ipv4first');
|
||||||
|
}
|
||||||
|
|
||||||
class WorkflowRunnerProcess {
|
class WorkflowRunnerProcess {
|
||||||
data: IWorkflowExecutionDataProcessWithExecution | undefined;
|
data: IWorkflowExecutionDataProcessWithExecution | undefined;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user