forked from FoundKeyGang/FoundKey
server: enable Happy Eyeballs IPv4/v6 selection
Whoever thought it was a good idea to have this disabled by default...
This commit is contained in:
parent
0569bc3e15
commit
bc841ec965
1 changed files with 3 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
|||
import cluster from 'node:cluster';
|
||||
import net from 'node:net';
|
||||
import Xev from 'xev';
|
||||
|
||||
import Logger from '@/services/logger.js';
|
||||
|
@ -25,6 +26,8 @@ export async function boot(): Promise<void> {
|
|||
process.title = `Foundkey (${process.env.mode})`;
|
||||
}
|
||||
|
||||
net.setDefaultAutoSelectFamily(true);
|
||||
|
||||
if (cluster.isPrimary || envOption.disableClustering) {
|
||||
await masterMain();
|
||||
|
||||
|
|
Loading…
Reference in a new issue