This commit is contained in:
NoLogicAlan committed 2026-10-21 01:50:50 +03:00
1 parent b068e3e95c
commit 5b4d1b0aa3
7 files changed
+22 -10

No files matched your search

+4 -1
View File
@@ -37,6 +37,9 @@
* its children — never export them manually.
*/
import dns from "node:dns";
dns.setDefaultResultOrder("ipv4first");
import * as fs from "node:fs";
import { fileURLToPath } from "node:url";
import { ShardingManager } from "@fluxerjs/sharding";
@@ -108,7 +111,7 @@ const manager = new ShardingManager(entryFile, {
respawn,
spawnTimeout,
spawnDelay,
execArgv: ["--tls-max-v1.2"],
execArgv: ["--dns-result-order=ipv4first", "--tls-max-v1.2"],
});
manager.on("shardCreate", (shard) => {