Skip to content
monkey patch limited socks5 support into python socket
Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
LICENSE
README
monkey_sockets_socks5.py

README

Just a basic monkey patch to give socks5 support to python sockets.


Usage:
Set the socks_proxy os environment variable.
Import it before anything else that will be using sockets.
If the environment variable isn't set, then no proxying will occur
socks_proxy="<DESTPORT1,DESTPORT2,...,DESTPORTN:>[username[:password]@]<PROXYHOST:><PROXYPORT>"


Caveats:
only supports ipv4
only supports socks5
user/pass auth has not been tested
if socks_proxy env variable is set, all socket connections on that port will use it



Something went wrong with that request. Please try again.