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)) } }