mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Fix require of dns module
This commit is contained in:
parent
1f412f3d78
commit
55771c7241
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