Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Options to specify http_proxy and https_proxy explicitly #532

Open
Javran opened this issue Mar 17, 2024 · 0 comments
Open

Options to specify http_proxy and https_proxy explicitly #532

Javran opened this issue Mar 17, 2024 · 0 comments

Comments

@Javran
Copy link

Javran commented Mar 17, 2024

This is somewhat a followup to #94.

In our use case we need to make connections with different Managers, with some going through proxy (with http_proxy and/or https_proxy) and others don't.

Looking at current implementation, it's only in body of newTlsManager and that of newTlsManagerWith that those two variables are dealt with, and helpers like parseSocksSettings are not exposed.

One workaround (I haven't tested this yet) I can think of is to set/unset environment variables as desired before initializing different managers, but I'd appreciate it if this can be done without doing IO mutations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant