Skip to content

grpc-js: disable http proxy with client options #1453

@badsyntax

Description

@badsyntax

Is your feature request related to a problem? Please describe.

When a system level http proxy is set (eg with http_proxy), and i attempt to connect to a grpc server running on localhost, the client never connects. I don't think it makes sense for requests to localhost to go through the http proxy.

Describe the solution you'd like

I would like to disable http proxying in the client with a client option, eg { 'grpc.enable_http_proxy': 0 }

Describe alternatives you've considered

Using env vars work, eg: no_grpc_proxy=localhost,127.0.0.0/8, but i don't want to set global vars. I have built an application that attempts to connect to a localhost grpc server and I don't want to set global vars that might have side effects with other applications that use grpc.

I am more than happy to send a PR myself, but i'd like to get some feedback first. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions