Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>2006-04-21 02:45:54 +0400
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>2006-04-21 02:45:54 +0400
commit6e905541ac014dc970090fd3a545bc61139142f9 (patch)
treeefde23a23acf0765c3869cef1b97235c464fb8e5 /mcs/class/System/System.Net/WebProxy.cs
parent04e0177073390be6235dc3a18c5f0340a8af4ae8 (diff)
2006-04-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* WebProxy.cs: a .ctor was not forwarding the 'credentials' argument. This fixes bug #78150. Also fix the bypass check for local requests. svn path=/trunk/mcs/; revision=59715
Diffstat (limited to 'mcs/class/System/System.Net/WebProxy.cs')
-rw-r--r--mcs/class/System/System.Net/WebProxy.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/mcs/class/System/System.Net/WebProxy.cs b/mcs/class/System/System.Net/WebProxy.cs
index 74bbee82390..6d718a117e2 100644
--- a/mcs/class/System/System.Net/WebProxy.cs
+++ b/mcs/class/System/System.Net/WebProxy.cs
@@ -69,7 +69,7 @@ namespace System.Net
public WebProxy (string address, bool bypassOnLocal, string [] bypassList,
ICredentials credentials)
- : this (ToUri (address), bypassOnLocal, bypassList, null) {}
+ : this (ToUri (address), bypassOnLocal, bypassList, credentials) {}
public WebProxy (Uri address, bool bypassOnLocal,
string[] bypassList, ICredentials credentials)
@@ -147,7 +147,7 @@ namespace System.Net
if (address == null)
return true;
- if (host.IsLoopback)
+ if (bypassOnLocal && host.IsLoopback)
return true;
if (bypassOnLocal && host.Host.IndexOf ('.') == -1)
@@ -204,7 +204,7 @@ namespace System.Net
if (address.IndexOf ("://") == -1)
address = "http://" + address;
-
+
return new Uri (address);
}
}