Disable HTTP/2

This commit is contained in:
SukkaW 2025-05-20 23:26:13 +08:00
parent 300d6c7409
commit e87117ef89

View File

@ -23,7 +23,7 @@ if (!fs.existsSync(CACHE_DIR)) {
fs.mkdirSync(CACHE_DIR, { recursive: true });
}
const agent = new Agent({ allowH2: true });
const agent = new Agent({ allowH2: false });
setGlobalDispatcher(agent.compose(
interceptors.dns({