mirror of https://github.com/node-red/node-red.git
Fix require of dns module
parent
1f412f3d78
commit
55771c7241
|
@ -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…
Reference in New Issue