Fix for AWS SOCKS proxies