Skip to content

anonymous authentication failure #1017

Answered by kazk
Masber asked this question in Q&A
Discussion options

You must be logged in to vote

You need to create a TlsConnector based on your config to authenticate with client certificates. You can do that with config.native_tls_connector() with native-tls feature enabled.

auth_layer is for adding token or basic auth (username+password) header, so it's not doing anything for your config.

It should look something like this (not tested):

    let connector = {
        let mut http = HttpConnector::new();
        http.enforce_http(false);
        let proxy = hyper_socks2::SocksConnector {
            proxy_addr: Uri::from_static("socks5://localhost:1080"),
            auth: None,
            connector: http,
        };
        let tls = tokio_native_tls::TlsConnector::from(config.nat…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Masber
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants