pyvmomi icon indicating copy to clipboard operation
pyvmomi copied to clipboard

socks5 proxy from environment variables is ignored

Open cmeissner opened this issue 3 years ago • 7 comments

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?

cmeissner avatar Jan 27 '21 09:01 cmeissner