Skip to content

No way to use a custom TLS wrapper for proxy connections #824

Closed
@inejge

Description

@inejge

[Motivation: rust-lang/rustup#509]

The function client::Client::with_http_proxy constructs a Proxy struct (via hyper::client::proxy::tunnel) with the ssl field which depends on build-time configuration of the TLS library. Rustup compiles hyper with no TLS support, using its own TLS wrapper based on rust-native-tls. In this case, hyper will use the built-in no_ssl::Plaintext wrapper, which will preclude using https URLs with proxy support.

There is currently no way to specify a custom TLS wrapper when initializing a proxied Client.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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