From 7b65bb2f95cde2b8d8055a0baf3e566dccf37de8 Mon Sep 17 00:00:00 2001 From: yeyang <746659424@qq.com> Date: Sun, 10 Mar 2024 19:36:58 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20=E9=80=82=E9=85=8D=E6=96=B0?= =?UTF-8?q?=E7=89=88=E6=9C=AChttps-proxy-agent=20#72?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/request/httpsProxyAgentMod.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/request/httpsProxyAgentMod.js b/lib/request/httpsProxyAgentMod.js index c57c1bc..370ef97 100644 --- a/lib/request/httpsProxyAgentMod.js +++ b/lib/request/httpsProxyAgentMod.js @@ -4,7 +4,7 @@ export class HttpsProxyAgent extends HttpsProxyAgentOrig.HttpsProxyAgent { constructor (opts) { super(opts) this.tlsConnectionOptions = opts.tls - const callback = this.callback.bind(this) - this.callback = (req, opts) => callback(req, Object.assign(opts, this.tlsConnectionOptions)) + const connect = this.connect.bind(this) + this.connect = (req, opts) => connect(req, Object.assign(opts, this.tlsConnectionOptions)) } }