Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //...
- const proxyOptions = {
- agent: {
- // create a new HttpsProxyAgent instance
- https: new HttpsProxyAgent({
- // add proxy settings
- keepAlive: true,
- keepAliveMsecs: 1000,
- maxSockets: 256,
- maxFreeSockets: 256,
- scheduling: 'lifo',
- // specify proxy URL.
- proxy: getRandomProxy()
- })
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement