TooTallNate / proxy-agents

Node.js HTTP Proxy Agents Monorepo
https://proxy-agents.n8.io
873 stars 228 forks source link

use proxy not from env #161

Closed trim21 closed 1 year ago

trim21 commented 1 year ago

I'm trying to upgrade ProxyAgent from v5

Which proxy is used for each HTTP request is determined by the proxy-from-env module, so check its documentation for instructions on configuring your environment variables.

I have many agent and some of them don't need proxy, how can I manually set proxy agent without changing env now?

TooTallNate commented 1 year ago

Let me know if the getProxyForUrl() option in proxy-agent@6.2.0 solves your needs.

trim21 commented 1 year ago

Yes, look fine