From 58912d5dcf8ab2fce3ac9817847bee30f8791fac Mon Sep 17 00:00:00 2001 From: DIYgod Date: Sat, 13 Jul 2024 23:08:49 +0800 Subject: [PATCH] fix: dispatcher conflict --- lib/utils/request-rewriter/fetch.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/request-rewriter/fetch.ts b/lib/utils/request-rewriter/fetch.ts index 2a6fc4cdd..ff8981c22 100644 --- a/lib/utils/request-rewriter/fetch.ts +++ b/lib/utils/request-rewriter/fetch.ts @@ -47,7 +47,7 @@ const wrappedFetch: typeof undici.fetch = async (input: RequestInfo, init?: Requ } // proxy - if (!options.dispatcher && proxy.dispatcher && (proxy.proxyObj.strategy !== 'on_retry' || isRetry)) { + if (!init?.dispatcher && proxy.dispatcher && (proxy.proxyObj.strategy !== 'on_retry' || isRetry)) { const proxyRegex = new RegExp(proxy.proxyObj.url_regex); let urlHandler; try {