proxy_client: add socks4, socks4a protocol support