mirror of
https://github.com/thelounge/thelounge
synced 2024-11-22 03:53:08 +00:00
Use the DNS result order returned by the OS
This commit is contained in:
commit
cb28204517
1 changed files with 7 additions and 0 deletions
7
index.js
7
index.js
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue