Spaces:
Build error
Build error
fix
Browse files- src/api/crawler.ts +2 -0
src/api/crawler.ts
CHANGED
|
@@ -794,6 +794,8 @@ export class CrawlerHost extends RPCHost {
|
|
| 794 |
throw err;
|
| 795 |
}
|
| 796 |
}
|
|
|
|
|
|
|
| 797 |
}
|
| 798 |
|
| 799 |
try {
|
|
|
|
| 794 |
throw err;
|
| 795 |
}
|
| 796 |
}
|
| 797 |
+
} else if (crawlOpts?.allocProxy && crawlOpts.allocProxy !== 'none' && !crawlOpts.proxyUrl) {
|
| 798 |
+
crawlOpts.proxyUrl = (await this.proxyProvider.alloc(crawlOpts.allocProxy)).href;
|
| 799 |
}
|
| 800 |
|
| 801 |
try {
|