fix: dispatcher conflict

This commit is contained in:
DIYgod 2024-07-13 23:08:49 +08:00
parent 77327e913d
commit 58912d5dcf
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -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 {