Use the DNS result order returned by the OS

This commit is contained in:
Reto Brunner 2022-02-15 09:20:52 +01:00
commit cb28204517

View file

@ -25,4 +25,11 @@ if (!require("semver").satisfies(process.version, pkg.engines.node)) {
process.exit(1);
}
const dns = require("dns");
// Set DNS result order early before anything that may depend on it happens.
if (dns.setDefaultResultOrder) {
dns.setDefaultResultOrder("verbatim");
}
require("./src/command-line");