Closed ghost closed 4 years ago
If you set the HTTP_PROXY
and HTTPS_PROXY
environment variables to the appropriate proxy settings, does it work?
How to tell Python to automatically use the proxy setting
It's worth noting, that you MUST url-encode any special characters as part of your config...
username: someuser@foo.com
password: p@ssw0rd
HTTP_PROXY=http://someuser%40foo.com:p%23ssw0rd@somehost:8181/
HTTPS_PROXY=http://someuser%40foo.com:p%23ssw0rd@somehost:8181/
You can use encodeURIComponent('p#ssw0rd')
in your web browser's dev tools, or in a node repl in order to get the encoded values for the username:password.
I'm certain theres a way to use a socks proxy, though it may require a code change. We'll have a look soon, thanks for asking!
Thanks for taking a look. I'll keep hacking at it as well and see what I can come up with. I setup a dev irc server for some testing.
Python's irclib
does not support SOCKS5 proxies, though there is a fork which does. Not sure that we'd go with something that isn't on pypi, though...
@funkbuddha Have you tried the HTTP_PROXY
and HTTPS_PROXY
environment variables that @tracker1 mentioned in his comment above? I know it works for urlopen
, just not sure if it works with the socket code that irclib
uses under the covers...
I'd like to run x84 as a TOR hidden service but in order to keep the service hidden AND use IRC I'd need to send the traffic over the TOR proxy. I've tried making this work in every way I can come up with but apparently my foo is too weak.