simple socks4 proxy implementation