Hey! I’ve had success with puppeteer proxyserver socks5h by using a library called `puppeteer-page-proxy`. It simplifies the whole process.
Here’s a quick example:
```javascript
const { useProxy } = require('puppeteer-page-proxy');
await useProxy(page, 'socks5h://user:pass@proxyIP:port');
```
This way, you don’t have to mess with launch args. Also, make sure your proxy supports socks5h—some only do socks5, which won’t work for DNS resolution.
Here’s a quick example:
```javascript
const { useProxy } = require('puppeteer-page-proxy');
await useProxy(page, 'socks5h://user:pass@proxyIP:port');
```
This way, you don’t have to mess with launch args. Also, make sure your proxy supports socks5h—some only do socks5, which won’t work for DNS resolution.
