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:
authorJeffrey Stedfast <jeff@xamarin.com>2012-12-03 22:58:43 +0400
committerJeffrey Stedfast <jeff@xamarin.com>2012-12-03 22:59:11 +0400
commit4e5ecefa684231c2ec12f8ad792aa1c41f19f2f6 (patch)
tree9bac09b6cae3bf8d7d7aa7c3b031001e9b65c81a
parent2f173837ea752ad7af17e5efa8ed2287fb30dd69 (diff)
Don't return a shared CFProxy instance
-rw-r--r--mcs/class/System/System.Net/MacProxy.cs8
1 files changed, 2 insertions, 6 deletions
diff --git a/mcs/class/System/System.Net/MacProxy.cs b/mcs/class/System/System.Net/MacProxy.cs
index eb279fc2c74..a21cf97c658 100644
--- a/mcs/class/System/System.Net/MacProxy.cs
+++ b/mcs/class/System/System.Net/MacProxy.cs
@@ -811,7 +811,7 @@ namespace System.Net
public Uri GetProxy (Uri targetUri)
{
- NetworkCredentials credentials = null;
+ NetworkCredential credentials = null;
Uri proxy = null;
if (targetUri == null)
@@ -873,13 +873,9 @@ namespace System.Net
}
}
- static CFWebProxy defaultWebProxy;
public static IWebProxy GetDefaultProxy ()
{
- if (defaultWebProxy == null)
- defaultWebProxy = new CFWebProxy ();
-
- return defaultWebProxy;
+ return new CFWebProxy ();
}
}
}