mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-29 01:51:52 +08:00
Fix: bail Firestore fetch out of HTTP cache
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import picocolors from 'picocolors';
|
||||
import undici, {
|
||||
interceptors,
|
||||
Agent,
|
||||
setGlobalDispatcher
|
||||
Agent
|
||||
// setGlobalDispatcher
|
||||
} from 'undici';
|
||||
|
||||
import type {
|
||||
@@ -25,7 +25,7 @@ if (!fs.existsSync(CACHE_DIR)) {
|
||||
|
||||
const agent = new Agent({ allowH2: true });
|
||||
|
||||
setGlobalDispatcher(agent.compose(
|
||||
(agent.compose(
|
||||
interceptors.dns({
|
||||
// disable IPv6
|
||||
dualStack: false,
|
||||
|
||||
Reference in New Issue
Block a user