Added suppot for socks proxies