⚗️ pixiv增加token登录

This commit is contained in:
yeyang
2023-02-12 02:10:06 +08:00
parent 016f8018f8
commit fc2aaac231
5 changed files with 238 additions and 28 deletions

View File

@@ -0,0 +1,10 @@
import HttpsProxyAgentOrig from 'https-proxy-agent'
export class HttpsProxyAgent extends HttpsProxyAgentOrig {
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))
}
}