mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Merge pull request #4562 from node-red/fix-require
Fix require of dns module
This commit is contained in:
commit
adb498af24
4
packages/node_modules/node-red/lib/red.js
vendored
4
packages/node_modules/node-red/lib/red.js
vendored
@ -26,8 +26,8 @@ var server = null;
|
||||
var apiEnabled = false;
|
||||
|
||||
const NODE_MAJOR_VERSION = process.versions.node.split('.')[0];
|
||||
if (NODE_MAJOR_VERSION > 14) {
|
||||
const dns = require('node:dns');
|
||||
if (NODE_MAJOR_VERSION >= 16) {
|
||||
const dns = require('dns');
|
||||
dns.setDefaultResultOrder('ipv4first');
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user