Skip to content

support socks5 proxy #166

@muzuiget

Description

@muzuiget

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 also write by the https-proxy-agent author.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions