This commit is contained in:
Yanlong Wang 2025-03-08 20:52:35 +08:00
parent 8456fcecbd
commit fd328cbcc2
No known key found for this signature in database
GPG Key ID: C0A623C0BADF9F37

View File

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