From fd328cbcc2bec70a09189a5f6ef1f6ca2ea32344 Mon Sep 17 00:00:00 2001 From: Yanlong Wang Date: Sat, 8 Mar 2025 20:52:35 +0800 Subject: [PATCH] fix --- src/api/crawler.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/api/crawler.ts b/src/api/crawler.ts index db15643..c741e5c 100644 --- a/src/api/crawler.ts +++ b/src/api/crawler.ts @@ -794,6 +794,8 @@ export class CrawlerHost extends RPCHost { throw err; } } + } else if (crawlOpts?.allocProxy && crawlOpts.allocProxy !== 'none' && !crawlOpts.proxyUrl) { + crawlOpts.proxyUrl = (await this.proxyProvider.alloc(crawlOpts.allocProxy)).href; } try {