Open plavcik opened 6 years ago
socks.set_default_proxy(socks.SOCKS5, "127.0.0.1", 8888)
orig_socket = socket.socket
socket.socket = socks.socksocket
socket.setdefaulttimeout(timeout)
s = orig_socket() #…
I'm using PySocks==1.6.8 in Python 3.6.4
I need for connection to PostgreSQL (via asyncpg.create_pool) on port 5432 ignore proxy and go directly. Is that possible and how?