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;
8
8
delete process . env . HTK_SERVER_TOKEN ; // Don't let anything else see this
9
9
10
10
import * as path from 'path' ;
11
- import { promises as fs } from 'fs'
11
+ import { promises as fs } from 'fs' ;
12
+ import * as net from 'net' ;
12
13
import * as semver from 'semver' ;
13
14
14
15
import { IS_PROD_BUILD } from '../constants' ;
@@ -43,8 +44,10 @@ class HttpToolkitServer extends Command {
43
44
async run ( ) {
44
45
const { flags } = this . parse ( HttpToolkitServer ) ;
45
46
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
+ }
46
50
this . setProcessTitle ( ) ;
47
-
48
51
this . cleanupOldServers ( ) ; // Async cleanup old server versions
49
52
50
53
await runHTK ( {
You can’t perform that action at this time.
0 commit comments