I am interested in having all connections made by web2py run through a SOCKS4a proxy (in this specific case Tor).
What is the best way to do so? Is there some function that is always used by web2py for network connections that I can go and patch? It is also very important that the connections made by web2py don't leak (e.x. DNS queries). Thanks for the tips.