Advertisement
dereksir

Untitled

Apr 21st, 2024 (edited)
583
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // import the required modules
  2. import got from 'got';
  3. import {HttpsProxyAgent} from 'hpagent';
  4.  
  5. const proxyOptions = {
  6.     agent: {
  7.         // create a new HttpsProxyAgent instance
  8.         https: new HttpsProxyAgent({
  9.             // add proxy settings
  10.             keepAlive: true,
  11.             keepAliveMsecs: 1000,
  12.             maxSockets: 256,
  13.             maxFreeSockets: 256,
  14.             scheduling: 'lifo',
  15.             // specify proxy URL.
  16.             proxy: 'http://20.219.180.149:3129'
  17.         })
  18.     }
  19. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement