Fix for Bug #186

Proxy support does not work when the IP address of the proxy server is
used instead of the hostname. This issue was introduced when adding
support for authentication proxies.