Skip to content

Instantly share code, notes, and snippets.

@fduxiao
fduxiao / server.py
Created February 17, 2018 16:52 — forked from scturtle/server.py
python socks5 proxy server with asyncio (async/await)
#!/usr/bin/env python3.5
import socket
import asyncio
from struct import pack, unpack
class Client(asyncio.Protocol):
def connection_made(self, transport):
self.transport = transport
self.server_transport = None