Fix the bad prefs returning a value for non-existent proxy port. Fixes today morning horkage in service.

git-svn-id: svn://10.0.0.236/trunk@48351 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
gagan%netscape.com
1999-09-20 18:56:44 +00:00
parent cb55c8d940
commit 800d748a2c

View File

@@ -124,7 +124,7 @@ nsHTTPHandler::nsHTTPHandler():mProxy(nsnull)
printf("Read HTTP proxy = %s:%d\n", (const char*)proxyServer,proxyPort);
#endif
if (NS_SUCCEEDED(rv))
if (NS_SUCCEEDED(rv) && (proxyPort>0)) // currently a bug in IntPref
{
if (NS_FAILED(SetProxyHost(proxyServer)))
NS_ERROR("Failed to set the HTTP proxy server");