mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
fix(core): Make DNS resolution order configurable (#7272)
This commit is contained in:
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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue