https://github.com/Jackarain/socks_server