File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,8 @@ const envToken = process.env.HTK_SERVER_TOKEN;
88delete process . env . HTK_SERVER_TOKEN ; // Don't let anything else see this
99
1010import * as path from 'path' ;
11- import { promises as fs } from 'fs'
11+ import { promises as fs } from 'fs' ;
12+ import * as net from 'net' ;
1213import * as semver from 'semver' ;
1314
1415import { IS_PROD_BUILD } from '../constants' ;
@@ -43,8 +44,10 @@ class HttpToolkitServer extends Command {
4344 async run ( ) {
4445 const { flags } = this . parse ( HttpToolkitServer ) ;
4546
47+ if ( net . setDefaultAutoSelectFamily ) { // Backward compat for Node <v20
48+ net . setDefaultAutoSelectFamily ( false ) ; // Disable this for now - new in Node v20 and seems unstable
49+ }
4650 this . setProcessTitle ( ) ;
47-
4851 this . cleanupOldServers ( ) ; // Async cleanup old server versions
4952
5053 await runHTK ( {
You can’t perform that action at this time.
0 commit comments