socks5 proxy from environment variables is ignored
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2.3k
- Forks
- 763
- PR merge metrics
- No merged PRs in 30d
Description
We need a socks5 proxy to connect to our vcenter server. Normally we set all_proxy to point to our local socks5 proxy and it works well.
But if we try to connect to vcenter with pyvmomi (SmartConnect) all proxy related environment variables are ignored:
$ for p in ${!http*} ${!HTT*} all_proxy ; do echo -n "$p: " && eval echo \$${p} ; done
http_proxy: socks5://localhost:1337
https_proxy: socks5://localhost:1337
HTTPS_proxy: socks5://localhost:1337
HTTP_proxy: socks5://localhost:1337
all_proxy: socks5://localhost:1337
Is there another way to make socks5 proxy work for connections?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the SmartConnect entry point and trace how connection proxy settings are read when the environment variables shown in the report are set. Reproduce the vCenter connection with the socks5 variables, then determine the expected proxy behavior and verify that those variables are honored without breaking direct connections.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100