适配新版https-proxy-agent

This commit is contained in:
yeyang
2023-05-11 17:14:19 +08:00
parent bdfbb80c6b
commit d71c3037ec
2 changed files with 12 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
import HttpsProxyAgentOrig from 'https-proxy-agent'
export class HttpsProxyAgent extends HttpsProxyAgentOrig {
export class HttpsProxyAgent extends HttpsProxyAgentOrig.HttpsProxyAgent {
constructor (opts) {
super(opts)
this.tlsConnectionOptions = opts.tls