mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-12 01:00:34 +08:00
Disable HTTP/2
This commit is contained in:
parent
c135291212
commit
6be59140bd
@ -23,7 +23,7 @@ if (!fs.existsSync(CACHE_DIR)) {
|
|||||||
fs.mkdirSync(CACHE_DIR, { recursive: true });
|
fs.mkdirSync(CACHE_DIR, { recursive: true });
|
||||||
}
|
}
|
||||||
|
|
||||||
const agent = new Agent({ allowH2: true });
|
const agent = new Agent({ allowH2: false });
|
||||||
|
|
||||||
setGlobalDispatcher(agent.compose(
|
setGlobalDispatcher(agent.compose(
|
||||||
interceptors.dns({
|
interceptors.dns({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user