mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-12 05:17:28 -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('source-map-support').install();
|
||||
require('reflect-metadata');
|
||||
require('dns').setDefaultResultOrder('ipv4first');
|
||||
|
||||
if (process.env.NODEJS_PREFER_IPV4 === 'true') {
|
||||
require('dns').setDefaultResultOrder('ipv4first');
|
||||
}
|
||||
|
||||
require('@oclif/command')
|
||||
.run()
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
import 'source-map-support/register';
|
||||
import 'reflect-metadata';
|
||||
import { setDefaultResultOrder } from 'dns';
|
||||
setDefaultResultOrder('ipv4first');
|
||||
|
||||
import { Container } from 'typedi';
|
||||
import type { IProcessMessage } from 'n8n-core';
|
||||
|
@ -59,6 +58,10 @@ import { License } from '@/License';
|
|||
import { InternalHooks } from '@/InternalHooks';
|
||||
import { PostHogClient } from '@/posthog';
|
||||
|
||||
if (process.env.NODEJS_PREFER_IPV4 === 'true') {
|
||||
setDefaultResultOrder('ipv4first');
|
||||
}
|
||||
|
||||
class WorkflowRunnerProcess {
|
||||
data: IWorkflowExecutionDataProcessWithExecution | undefined;
|
||||
|
||||
|
|
Loading…
Reference in a new issue