googleapis / googleapis/google-cloud-node
support socks5 proxy
Open
library: google-cloud-node-core
type: feature request
- Dominant language
- TypeScript
- Stars
- 3.2k
- Forks
- 712
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 99
Description
Currently gaxios not support `https_proxy` environment variable like `socks5://127.0.0.1:8080`. I did a litte hack on the code, just change the file https://github.com/googleapis/gaxios/blob/v2.2.0/src/gaxios.ts#L60
```
HttpsProxyAgent = require('https-proxy-agent');
```
to
```
HttpsProxyAgent = require('proxy-agent');
```
Then it work fine.
[proxy-agent](https://github.com/TooTallNate/node-proxy-agent) also write by the [https-proxy-agent](https://github.com/TooTallNate/node-https-proxy-agent) author.
Contributor guide
Assessment
This issue has not been assessed yet.