mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-12 01:00:34 +08:00
Chore: enable HTTP/2 again
This commit is contained in:
parent
83e94403e8
commit
0a2548d6e5
@ -23,7 +23,7 @@ if (!fs.existsSync(CACHE_DIR)) {
|
||||
fs.mkdirSync(CACHE_DIR, { recursive: true });
|
||||
}
|
||||
|
||||
const agent = new Agent({ allowH2: false });
|
||||
const agent = new Agent({ allowH2: true });
|
||||
|
||||
setGlobalDispatcher(agent.compose(
|
||||
interceptors.dns({
|
||||
|
||||
@ -122,6 +122,7 @@ export function task(importMetaMain: boolean, importMetaPath: string) {
|
||||
dummySpan.stop();
|
||||
printTraceResult(dummySpan.traceResult);
|
||||
process.nextTick(whyIsNodeRunning);
|
||||
process.nextTick(() => process.exit(0));
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user