Closed cesco69 closed 1 year ago
I have just upgraded 'proxy-agent' at latest version.
Prior of latest version I create a proxy in this way
import * as proxy from 'proxy-agent'; proxy('http://172.16.240.254:3128')
Now, with latest version how create a proxy with the proxy url 'http://172.16.240.254:3128'
import { ProxyAgent } from 'proxy-agent'; new ProxyAgent( ??? )
After a bit of debug, this seem the correct implementation:
new ProxyAgent({ getProxyForUrl: () => 'http://172.16.120.120:3128' })
I have just upgraded 'proxy-agent' at latest version.
Prior of latest version I create a proxy in this way
Now, with latest version how create a proxy with the proxy url 'http://172.16.240.254:3128'