fix: proxy error

This commit is contained in:
Elysia
2024-07-22 21:29:16 +07:00
parent c8a617bd40
commit bbbf40c5ac
2 changed files with 6 additions and 3 deletions

View File

@@ -48,8 +48,7 @@ class APIRequest {
secureProtocol: 'TLSv1_2_method',
ciphers: ciphers.join(':'),
})) {
this.client.options.http.agent.options[k] = v;
this.client.options.http.agent.httpsAgent.options.options[k] = v;
this.client.options.http.agent.httpsAgent[k] = v;
}
agent = this.client.options.http.agent;
} else {